basant307/AI_Governance_Project
048
1{2 'targets': [3 {4 'target_name': 'keytar',5 'defines': [6 "NAPI_VERSION=<(napi_build_version)",7 ],8 'cflags!': [ '-fno-exceptions' ],9 'cflags_cc!': [ '-fno-exceptions' ],10 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',11 'CLANG_CXX_LIBRARY': 'libc++',12 'MACOSX_DEPLOYMENT_TARGET': '10.7',13 },14 'msvs_settings': {15 'VCCLCompilerTool': { 'ExceptionHandling': 1 },16 },17 'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],18 'sources': [19 'src/async.cc',20 'src/main.cc',21 'src/keytar.h',22 'src/credentials.h',23 ],24 'conditions': [25 ['OS=="mac"', {26 'sources': [27 'src/keytar_mac.cc',28 ],29 'link_settings': {30 'libraries': [31 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',32 ],33 },34 }],35 ['OS=="win"', {36 'sources': [37 'src/keytar_win.cc',38 ],39 'msvs_disabled_warnings': [40 4267, # conversion from 'size_t' to 'int', possible loss of data41 4530, # C++ exception handler used, but unwind semantics are not enabled42 4506, # no definition for inline function43 ],44 }],45 ['OS not in ["mac", "win"]', {46 'sources': [47 'src/keytar_posix.cc',48 ],49 'cflags': [50 '<!(pkg-config --cflags libsecret-1)',51 '-Wno-missing-field-initializers',52 '-Wno-deprecated-declarations',53 ],54 'link_settings': {55 'ldflags': [56 '<!(pkg-config --libs-only-L --libs-only-other libsecret-1)',57 ],58 'libraries': [59 '<!(pkg-config --libs-only-l libsecret-1)',60 ],61 },62 }]63 ],64 }65 ]66}67 