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