| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'conditions': [ | 6 'conditions': [ |
| 7 ['OS!="win"', { | 7 ['OS!="win"', { |
| 8 'variables': { | 8 'variables': { |
| 9 'config_h_dir': | 9 'config_h_dir': |
| 10 '.', # crafted for gcc/linux. | 10 '.', # crafted for gcc/linux. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 # | 34 # |
| 35 # option optimize_for = LITE_RUNTIME; | 35 # option optimize_for = LITE_RUNTIME; |
| 36 # | 36 # |
| 37 # to your .proto file. | 37 # to your .proto file. |
| 38 { | 38 { |
| 39 'target_name': 'protobuf_lite', | 39 'target_name': 'protobuf_lite', |
| 40 'type': 'static_library', | 40 'type': 'static_library', |
| 41 'toolsets': ['host', 'target'], | 41 'toolsets': ['host', 'target'], |
| 42 'sources': [ | 42 'sources': [ |
| 43 'src/google/protobuf/stubs/atomicops.h', | 43 'src/google/protobuf/stubs/atomicops.h', |
| 44 'src/google/protobuf/stubs/atomicops_internals_arm_gcc.h', |
| 45 'src/google/protobuf/stubs/atomicops_internals_mips_gcc.h', |
| 46 'src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc', |
| 47 'src/google/protobuf/stubs/atomicops_internals_x86_gcc.h', |
| 48 'src/google/protobuf/stubs/atomicops_internals_x86_macosx.h', |
| 49 'src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc', |
| 50 'src/google/protobuf/stubs/atomicops_internals_x86_msvc.h', |
| 44 'src/google/protobuf/stubs/common.h', | 51 'src/google/protobuf/stubs/common.h', |
| 45 'src/google/protobuf/stubs/once.h', | 52 'src/google/protobuf/stubs/once.h', |
| 46 'src/google/protobuf/stubs/platform_macros.h', | 53 'src/google/protobuf/stubs/platform_macros.h', |
| 47 'src/google/protobuf/extension_set.h', | 54 'src/google/protobuf/extension_set.h', |
| 48 'src/google/protobuf/generated_message_util.h', | 55 'src/google/protobuf/generated_message_util.h', |
| 49 'src/google/protobuf/message_lite.h', | 56 'src/google/protobuf/message_lite.h', |
| 50 'src/google/protobuf/repeated_field.h', | 57 'src/google/protobuf/repeated_field.h', |
| 51 'src/google/protobuf/unknown_field_set.cc', | 58 'src/google/protobuf/unknown_field_set.cc', |
| 52 'src/google/protobuf/unknown_field_set.h', | 59 'src/google/protobuf/unknown_field_set.h', |
| 53 'src/google/protobuf/wire_format_lite.h', | 60 'src/google/protobuf/wire_format_lite.h', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 65 'src/google/protobuf/generated_message_util.cc', | 72 'src/google/protobuf/generated_message_util.cc', |
| 66 'src/google/protobuf/message_lite.cc', | 73 'src/google/protobuf/message_lite.cc', |
| 67 'src/google/protobuf/repeated_field.cc', | 74 'src/google/protobuf/repeated_field.cc', |
| 68 'src/google/protobuf/wire_format_lite.cc', | 75 'src/google/protobuf/wire_format_lite.cc', |
| 69 'src/google/protobuf/io/coded_stream.cc', | 76 'src/google/protobuf/io/coded_stream.cc', |
| 70 'src/google/protobuf/io/coded_stream_inl.h', | 77 'src/google/protobuf/io/coded_stream_inl.h', |
| 71 'src/google/protobuf/io/zero_copy_stream.cc', | 78 'src/google/protobuf/io/zero_copy_stream.cc', |
| 72 'src/google/protobuf/io/zero_copy_stream_impl_lite.cc', | 79 'src/google/protobuf/io/zero_copy_stream_impl_lite.cc', |
| 73 '<(config_h_dir)/config.h', | 80 '<(config_h_dir)/config.h', |
| 74 ], | 81 ], |
| 75 'conditions': [ | |
| 76 ['OS == "win"', { | |
| 77 'sources+': [ | |
| 78 'src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc', | |
| 79 'src/google/protobuf/stubs/atomicops_internals_x86_msvc.h', | |
| 80 ], | |
| 81 }], | |
| 82 ['OS == "mac"', { | |
| 83 'sources+': [ | |
| 84 'src/google/protobuf/stubs/atomicops_internals_x86_macosx.h', | |
| 85 ], | |
| 86 }], | |
| 87 ['"<(target_arch)" == "arm"', { | |
| 88 'sources+': [ | |
| 89 'src/google/protobuf/stubs/atomicops_internals_arm_gcc.h', | |
| 90 ], | |
| 91 }], | |
| 92 ['"<(target_arch)" == "mips"', { | |
| 93 'sources+': [ | |
| 94 'src/google/protobuf/stubs/atomicops_internals_mips_gcc.h', | |
| 95 ], | |
| 96 }], | |
| 97 ['"<(target_arch)" == "ia32" or "<(target_arch)" == "x64"', { | |
| 98 'sources+': [ | |
| 99 'src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc', | |
| 100 'src/google/protobuf/stubs/atomicops_internals_x86_gcc.h', | |
| 101 ], | |
| 102 }], | |
| 103 ], | |
| 104 | |
| 105 'include_dirs': [ | 82 'include_dirs': [ |
| 106 '<(config_h_dir)', | 83 '<(config_h_dir)', |
| 107 'src', | 84 'src', |
| 108 ], | 85 ], |
| 109 # This macro must be defined to suppress the use of dynamic_cast<>, | 86 # This macro must be defined to suppress the use of dynamic_cast<>, |
| 110 # which requires RTTI. | 87 # which requires RTTI. |
| 111 'defines': [ | 88 'defines': [ |
| 112 'GOOGLE_PROTOBUF_NO_RTTI', | 89 'GOOGLE_PROTOBUF_NO_RTTI', |
| 113 ], | 90 ], |
| 114 | 91 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 # ], | 308 # ], |
| 332 # 'dependencies': [ | 309 # 'dependencies': [ |
| 333 # 'protoc#host', | 310 # 'protoc#host', |
| 334 # ], | 311 # ], |
| 335 # 'sources': [ | 312 # 'sources': [ |
| 336 # 'src/google/protobuf/descriptor.proto', | 313 # 'src/google/protobuf/descriptor.proto', |
| 337 # ], | 314 # ], |
| 338 }, | 315 }, |
| 339 ], | 316 ], |
| 340 } | 317 } |
| OLD | NEW |