| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'compiler_files', | 8 'target_name': 'compiler_files', |
| 9 'type': 'static_library', | 9 'type': 'static_library', |
| 10 'toolsets': ['host'], | |
| 11 'include_dirs': [ | 10 'include_dirs': [ |
| 12 'src/include', | 11 'src/include', |
| 13 ], | 12 ], |
| 14 'sources': [ | 13 'sources': [ |
| 15 'src/src/idl_gen_cpp.cpp', | 14 'src/src/idl_gen_cpp.cpp', |
| 16 'src/src/idl_gen_fbs.cpp', | 15 'src/src/idl_gen_fbs.cpp', |
| 17 'src/src/idl_gen_general.cpp', | 16 'src/src/idl_gen_general.cpp', |
| 18 'src/src/idl_gen_go.cpp', | 17 'src/src/idl_gen_go.cpp', |
| 19 'src/src/idl_gen_js.cpp', | 18 'src/src/idl_gen_js.cpp', |
| 20 'src/src/idl_gen_php.cpp', | 19 'src/src/idl_gen_php.cpp', |
| 21 'src/src/idl_gen_python.cpp', | 20 'src/src/idl_gen_python.cpp', |
| 22 'src/src/idl_gen_text.cpp', | 21 'src/src/idl_gen_text.cpp', |
| 23 'src/src/idl_parser.cpp', | 22 'src/src/idl_parser.cpp', |
| 24 'src/src/reflection.cpp', | 23 'src/src/reflection.cpp', |
| 25 'src/src/util.cpp', | 24 'src/src/util.cpp', |
| 26 'src/include/flatbuffers/code_generators.h', | 25 'src/include/flatbuffers/code_generators.h', |
| 27 'src/include/flatbuffers/idl.h', | 26 'src/include/flatbuffers/idl.h', |
| 28 'src/include/flatbuffers/util.h', | 27 'src/include/flatbuffers/util.h', |
| 29 ], | 28 ], |
| 30 }, | 29 }, |
| 31 { | 30 { |
| 32 'target_name': 'flatbuffers', | 31 'target_name': 'flatbuffers', |
| 33 'type': 'none', | 32 'type': 'static_library', |
| 34 'toolsets': ['host', 'target'], | |
| 35 'include_dirs': [ | 33 'include_dirs': [ |
| 36 'src/include', | 34 'src/include', |
| 37 ], | 35 ], |
| 38 'direct_dependent_settings': { | 36 'direct_dependent_settings': { |
| 39 'include_dirs': [ | 37 'include_dirs': [ |
| 40 'src/include', | 38 'src/include', |
| 41 ], | 39 ], |
| 42 }, | 40 }, |
| 43 'sources': [ | 41 'sources': [ |
| 44 'src/include/flatbuffers/flatbuffers.h', | 42 'src/include/flatbuffers/flatbuffers.h', |
| 45 'src/include/flatbuffers/hash.h', | 43 'src/include/flatbuffers/hash.h', |
| 46 ] | 44 ] |
| 47 }, | 45 }, |
| 48 { | 46 { |
| 49 'target_name': 'flatc', | 47 'target_name': 'flatc', |
| 50 'type': 'executable', | 48 'type': 'executable', |
| 51 'toolsets': ['host'], | |
| 52 'dependencies': [ | 49 'dependencies': [ |
| 53 'compiler_files', | 50 'compiler_files', |
| 54 'flatbuffers', | 51 'flatbuffers', |
| 55 ], | 52 ], |
| 56 'sources': [ | 53 'sources': [ |
| 57 'src/src/flatc.cpp', | 54 'src/src/flatc.cpp', |
| 58 ], | 55 ], |
| 59 }, | 56 }, |
| 60 | 57 |
| 61 # The following is just for testing. | 58 # The following is just for testing. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 76 'includes': [ 'flatc.gypi' ], | 73 'includes': [ 'flatc.gypi' ], |
| 77 'dependencies': [ | 74 'dependencies': [ |
| 78 ':flatbuffers', | 75 ':flatbuffers', |
| 79 ], | 76 ], |
| 80 }, | 77 }, |
| 81 { | 78 { |
| 82 # Note that you need to execute this test from the flatbuffers directory: | 79 # Note that you need to execute this test from the flatbuffers directory: |
| 83 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest | 80 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest |
| 84 'target_name': 'flatbuffers_unittest', | 81 'target_name': 'flatbuffers_unittest', |
| 85 'type': 'executable', | 82 'type': 'executable', |
| 86 'toolsets': ['host'], | |
| 87 'dependencies': [ | 83 'dependencies': [ |
| 88 'compiler_files', | 84 'compiler_files', |
| 89 'flatbuffers' | 85 'flatbuffers' |
| 90 ], | 86 ], |
| 91 'sources': [ | 87 'sources': [ |
| 92 # The following files are not included in :flatbuffers | 88 # The following files are not included in :flatbuffers |
| 93 # but are listed here because test.cpp tests more than | 89 # but are listed here because test.cpp tests more than |
| 94 # what will get included into Chrome (reflection and generation). | 90 # what will get included into Chrome (reflection and generation). |
| 95 'src/include/reflection_generated.h', | 91 'src/include/reflection_generated.h', |
| 96 'src/include/reflection.h', | 92 'src/include/reflection.h', |
| 97 # This is the actual test. | 93 # This is the actual test. |
| 98 'src/tests/test.cpp', | 94 'src/tests/test.cpp', |
| 99 ] | 95 ] |
| 100 } | 96 } |
| 101 ], | 97 ], |
| 102 } | 98 } |
| OLD | NEW |