Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'compiler_files': [ | |
|
jochen (gone - plz use gerrit)
2016/04/21 14:59:00
should be a static_library
battre
2016/04/21 15:31:34
Done.
| |
| 8 'src/src/idl_gen_cpp.cpp', | |
| 9 'src/src/idl_gen_fbs.cpp', | |
| 10 'src/src/idl_gen_general.cpp', | |
| 11 'src/src/idl_gen_go.cpp', | |
| 12 'src/src/idl_gen_js.cpp', | |
| 13 'src/src/idl_gen_php.cpp', | |
| 14 'src/src/idl_gen_python.cpp', | |
| 15 'src/src/idl_gen_text.cpp', | |
| 16 'src/src/idl_parser.cpp', | |
| 17 'src/src/reflection.cpp', | |
| 18 'src/src/util.cpp', | |
| 19 'src/include/idl.h', | |
| 20 'src/include/util.h', | |
| 21 ], | |
| 22 }, | |
| 23 'targets': [ | |
| 24 { | |
| 25 'target_name': 'flatbuffers', | |
| 26 'type': 'static_library', | |
| 27 'include_dirs': [ | |
| 28 'src/include', | |
| 29 ], | |
| 30 'direct_dependent_settings': { | |
| 31 'include_dirs': [ | |
| 32 'src/include', | |
| 33 ], | |
| 34 }, | |
| 35 'sources': [ | |
| 36 'src/include/flatbuffers/flatbuffers.h', | |
| 37 'src/include/flatbuffers/hash.h', | |
| 38 'src/src/flathash.cpp', | |
| 39 ] | |
| 40 }, | |
| 41 { | |
| 42 'target_name': 'flatc', | |
| 43 'type': 'executable', | |
| 44 'dependencies': [ | |
| 45 'flatbuffers' | |
| 46 ], | |
| 47 'sources': [ | |
| 48 '<@(compiler_files)', | |
| 49 'src/src/flatc.cpp', | |
| 50 ], | |
| 51 }, | |
| 52 | |
| 53 # The following is just for testing. | |
| 54 { | |
| 55 'target_name': 'flatbuffers_samplebuffer', | |
| 56 'type': 'static_library', | |
| 57 'sources': [ | |
| 58 'src/tests/monster_test.fbs', | |
| 59 'src/tests/include_test1.fbs', | |
| 60 'src/tests/include_test2.fbs', | |
| 61 'src/tests/namespace_test/namespace_test1.fbs', | |
| 62 'src/tests/namespace_test/namespace_test2.fbs', | |
| 63 ], | |
| 64 'variables': { | |
| 65 'flatc_out_dir': '.', | |
| 66 }, | |
| 67 'includes': [ 'flatc.gypi' ], | |
| 68 'dependencies': [ | |
| 69 ':flatbuffers', | |
| 70 ], | |
| 71 }, | |
| 72 { | |
| 73 # Note that you need to execute this test from the flatbuffers directory: | |
| 74 # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest | |
| 75 'target_name': 'flatbuffers_unittest', | |
| 76 'type': 'executable', | |
| 77 'dependencies': [ | |
| 78 'flatbuffers' | |
| 79 ], | |
| 80 'sources': [ | |
| 81 # The following files are not included in :flatbuffers | |
|
jochen (gone - plz use gerrit)
2016/04/21 14:59:00
odd indenting?
battre
2016/04/21 15:31:34
Done.
| |
| 82 # but are listed here because test.cpp tests more than | |
| 83 # what will get included into Chrome (reflection and generation). | |
| 84 '<@(compiler_files)', | |
| 85 'src/include/reflection_generated.h', | |
| 86 'src/include/reflection.h', | |
| 87 # This is the actual test. | |
| 88 'src/tests/test.cpp', | |
| 89 ] | |
| 90 } | |
| 91 ], | |
| 92 } | |
| OLD | NEW |