aboutsummaryrefslogtreecommitdiff
path: root/cpp/libaddressinput.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/libaddressinput.gyp')
-rw-r--r--cpp/libaddressinput.gyp17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/libaddressinput.gyp b/cpp/libaddressinput.gyp
index f4eead0..5e503d4 100644
--- a/cpp/libaddressinput.gyp
+++ b/cpp/libaddressinput.gyp
@@ -15,14 +15,31 @@
'variables': {
'component%': 'shared_library',
},
+ 'target_defaults': {
+ 'conditions': [
+ ['OS == "linux" and "<(component)" == "shared_library"', {
+ # https://code.google.com/p/gyp/issues/detail?id=374
+ 'cflags': ['-fPIC'],
+ }],
+ ],
+ },
'targets': [
{
'target_name': 'libaddressinput',
'type': '<(component)',
+ 'sources': [
+ 'src/region_data_constants.cc',
+ ],
},
{
'target_name': 'unit_tests',
'type': 'executable',
+ 'sources': [
+ 'test/region_data_constants_test.cc',
+ ],
+ 'include_dirs': [
+ 'src',
+ ],
'dependencies': [
'libaddressinput',
'gtest.gyp:main',