tdesktop/Telegram/gyp/codegen.gyp

160 lines
5.3 KiB
Python

# This file is part of Telegram Desktop,
# the official desktop version of Telegram messaging app, see https://telegram.org
#
# Telegram Desktop is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# It is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# In addition, as a special exception, the copyright holders give permission
# to link the code of portions of this program with the OpenSSL library.
#
# Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
# Copyright (c) 2014 John Preston, https://desktop.telegram.org
{
'includes': [
'common.gypi',
],
'targets': [{
'target_name': 'MetaLang',
'variables': {
'libs_loc': '../../../Libraries',
'src_loc': '../SourceFiles',
'gen_loc': '../GeneratedFiles',
'mac_target': '10.10',
'sources': [
'<(src_loc)/_other/mlmain.cpp',
'<(src_loc)/_other/mlmain.h',
'<(src_loc)/_other/genlang.cpp',
'<(src_loc)/_other/genlang.h',
],
},
'includes': [
'common_executable.gypi',
'qt.gypi',
],
'include_dirs': [
'<(src_loc)',
'<(gen_loc)',
],
'sources': [
'<!@(python <(DEPTH)/list_sources.py <@(sources) <(qt_moc_list_sources_arg))',
],
}, {
'target_name': 'codegen_style',
'variables': {
'libs_loc': '../../../Libraries',
'src_loc': '../SourceFiles',
'mac_target': '10.10',
},
'includes': [
'common_executable.gypi',
'qt.gypi',
],
'include_dirs': [
'<(src_loc)',
],
'sources': [
'<(src_loc)/codegen/common/basic_tokenized_file.cpp',
'<(src_loc)/codegen/common/basic_tokenized_file.h',
'<(src_loc)/codegen/common/checked_utf8_string.cpp',
'<(src_loc)/codegen/common/checked_utf8_string.h',
'<(src_loc)/codegen/common/clean_file.cpp',
'<(src_loc)/codegen/common/clean_file.h',
'<(src_loc)/codegen/common/clean_file_reader.h',
'<(src_loc)/codegen/common/const_utf8_string.h',
'<(src_loc)/codegen/common/cpp_file.cpp',
'<(src_loc)/codegen/common/cpp_file.h',
'<(src_loc)/codegen/common/logging.cpp',
'<(src_loc)/codegen/common/logging.h',
'<(src_loc)/codegen/style/generator.cpp',
'<(src_loc)/codegen/style/generator.h',
'<(src_loc)/codegen/style/main.cpp',
'<(src_loc)/codegen/style/module.cpp',
'<(src_loc)/codegen/style/module.h',
'<(src_loc)/codegen/style/options.cpp',
'<(src_loc)/codegen/style/options.h',
'<(src_loc)/codegen/style/parsed_file.cpp',
'<(src_loc)/codegen/style/parsed_file.h',
'<(src_loc)/codegen/style/processor.cpp',
'<(src_loc)/codegen/style/processor.h',
'<(src_loc)/codegen/style/structure_types.cpp',
'<(src_loc)/codegen/style/structure_types.h',
],
}, {
'target_name': 'codegen_numbers',
'variables': {
'libs_loc': '../../../Libraries',
'src_loc': '../SourceFiles',
'mac_target': '10.10',
},
'includes': [
'common_executable.gypi',
'qt.gypi',
],
'include_dirs': [
'<(src_loc)',
],
'sources': [
'<(src_loc)/codegen/common/basic_tokenized_file.cpp',
'<(src_loc)/codegen/common/basic_tokenized_file.h',
'<(src_loc)/codegen/common/checked_utf8_string.cpp',
'<(src_loc)/codegen/common/checked_utf8_string.h',
'<(src_loc)/codegen/common/clean_file.cpp',
'<(src_loc)/codegen/common/clean_file.h',
'<(src_loc)/codegen/common/clean_file_reader.h',
'<(src_loc)/codegen/common/const_utf8_string.h',
'<(src_loc)/codegen/common/cpp_file.cpp',
'<(src_loc)/codegen/common/cpp_file.h',
'<(src_loc)/codegen/common/logging.cpp',
'<(src_loc)/codegen/common/logging.h',
'<(src_loc)/codegen/numbers/generator.cpp',
'<(src_loc)/codegen/numbers/generator.h',
'<(src_loc)/codegen/numbers/main.cpp',
'<(src_loc)/codegen/numbers/options.cpp',
'<(src_loc)/codegen/numbers/options.h',
'<(src_loc)/codegen/numbers/parsed_file.cpp',
'<(src_loc)/codegen/numbers/parsed_file.h',
'<(src_loc)/codegen/numbers/processor.cpp',
'<(src_loc)/codegen/numbers/processor.h',
],
}, {
'target_name': 'codegen_emoji',
'variables': {
'libs_loc': '../../../Libraries',
'src_loc': '../SourceFiles',
'mac_target': '10.10',
},
'includes': [
'common_executable.gypi',
'qt.gypi',
],
'include_dirs': [
'<(src_loc)',
],
'sources': [
'<(src_loc)/codegen/common/cpp_file.cpp',
'<(src_loc)/codegen/common/cpp_file.h',
'<(src_loc)/codegen/common/logging.cpp',
'<(src_loc)/codegen/common/logging.h',
'<(src_loc)/codegen/emoji/data.cpp',
'<(src_loc)/codegen/emoji/data.h',
'<(src_loc)/codegen/emoji/generator.cpp',
'<(src_loc)/codegen/emoji/generator.h',
'<(src_loc)/codegen/emoji/main.cpp',
'<(src_loc)/codegen/emoji/options.cpp',
'<(src_loc)/codegen/emoji/options.h',
],
}],
}