Chromium Code Reviews| Index: third_party/flatbuffers/flatbuffers.gyp |
| diff --git a/third_party/flatbuffers/flatbuffers.gyp b/third_party/flatbuffers/flatbuffers.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6f5df9fed48150255cd25ac91ac23b95867e706d |
| --- /dev/null |
| +++ b/third_party/flatbuffers/flatbuffers.gyp |
| @@ -0,0 +1,92 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +{ |
| + 'variables': { |
| + '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.
|
| + 'src/src/idl_gen_cpp.cpp', |
| + 'src/src/idl_gen_fbs.cpp', |
| + 'src/src/idl_gen_general.cpp', |
| + 'src/src/idl_gen_go.cpp', |
| + 'src/src/idl_gen_js.cpp', |
| + 'src/src/idl_gen_php.cpp', |
| + 'src/src/idl_gen_python.cpp', |
| + 'src/src/idl_gen_text.cpp', |
| + 'src/src/idl_parser.cpp', |
| + 'src/src/reflection.cpp', |
| + 'src/src/util.cpp', |
| + 'src/include/idl.h', |
| + 'src/include/util.h', |
| + ], |
| + }, |
| + 'targets': [ |
| + { |
| + 'target_name': 'flatbuffers', |
| + 'type': 'static_library', |
| + 'include_dirs': [ |
| + 'src/include', |
| + ], |
| + 'direct_dependent_settings': { |
| + 'include_dirs': [ |
| + 'src/include', |
| + ], |
| + }, |
| + 'sources': [ |
| + 'src/include/flatbuffers/flatbuffers.h', |
| + 'src/include/flatbuffers/hash.h', |
| + 'src/src/flathash.cpp', |
| + ] |
| + }, |
| + { |
| + 'target_name': 'flatc', |
| + 'type': 'executable', |
| + 'dependencies': [ |
| + 'flatbuffers' |
| + ], |
| + 'sources': [ |
| + '<@(compiler_files)', |
| + 'src/src/flatc.cpp', |
| + ], |
| + }, |
| + |
| + # The following is just for testing. |
| + { |
| + 'target_name': 'flatbuffers_samplebuffer', |
| + 'type': 'static_library', |
| + 'sources': [ |
| + 'src/tests/monster_test.fbs', |
| + 'src/tests/include_test1.fbs', |
| + 'src/tests/include_test2.fbs', |
| + 'src/tests/namespace_test/namespace_test1.fbs', |
| + 'src/tests/namespace_test/namespace_test2.fbs', |
| + ], |
| + 'variables': { |
| + 'flatc_out_dir': '.', |
| + }, |
| + 'includes': [ 'flatc.gypi' ], |
| + 'dependencies': [ |
| + ':flatbuffers', |
| + ], |
| + }, |
| + { |
| + # Note that you need to execute this test from the flatbuffers directory: |
| + # cd third_party/flatbuffers/ && ../../out/Debug/flatbuffers_unittest |
| + 'target_name': 'flatbuffers_unittest', |
| + 'type': 'executable', |
| + 'dependencies': [ |
| + 'flatbuffers' |
| + ], |
| + 'sources': [ |
| + # 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.
|
| + # but are listed here because test.cpp tests more than |
| + # what will get included into Chrome (reflection and generation). |
| + '<@(compiler_files)', |
| + 'src/include/reflection_generated.h', |
| + 'src/include/reflection.h', |
| + # This is the actual test. |
| + 'src/tests/test.cpp', |
| + ] |
| + } |
| + ], |
| +} |