825fd860f1293092983ee16a38c319cc0221d355
[WebKit-https.git] / Source / JavaScriptGlue / gyp / JavaScriptGlue.gyp
1 {
2   'includes': [
3     '../../gyp/common.gypi',
4     'JavaScriptGlue.gypi',
5   ],
6   'xcode_config_file': '<(DEPTH)/JavaScriptGlue/Configurations/DebugRelease.xcconfig',
7   'targets': [
8     {
9       'target_name': 'JavaScriptGlue',
10       'type': 'shared_library',
11       'dependencies': [
12         'Update Version'
13       ],
14       'include_dirs': [
15         '<(DEPTH)/JavaScriptGlue/ForwardingHeaders',
16         '<(DEPTH)/JavaScriptGlue/icu',
17         '<(PRODUCT_DIR)/include',
18       ],
19       'sources': [
20         '<@(javascriptglue_files)',
21         '<(PRODUCT_DIR)/JavaScriptCore.framework',
22         '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework',
23         '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
24         '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
25       ],
26       'xcode_config_file': '../Configurations/JavaScriptGlue.xcconfig',
27       'postbuilds': [
28         {
29           'postbuild_name': 'Check For Global Initializers',
30           'action': [
31             'sh', '<(DEPTH)/gyp/run-if-exists.sh', '<(DEPTH)/../Tools/Scripts/check-for-global-initializers'
32           ],
33         },
34         {
35           'postbuild_name': 'Check For Weak VTables and Externals',
36           'action': [
37             'sh', '<(DEPTH)/gyp/run-if-exists.sh', '<(DEPTH)/../Tools/Scripts/check-for-weak-vtables-and-externals'
38           ],
39         },
40         {
41           'postbuild_name': 'Remove Headers If Needed',
42           'action': [
43             'sh', '<(DEPTH)/gyp/remove-headers-if-needed.sh'
44           ],
45         },
46       ],
47       'conditions': [
48         ['OS=="mac"', {
49           'mac_bundle': 1,
50           'xcode_settings': {
51             # FIXME: Remove these overrides once JavaScriptGlue.xcconfig is
52             # used only by this project.
53             'INFOPLIST_FILE': '<(DEPTH)/JavaScriptGlue/Info.plist',
54             'EXPORTED_SYMBOLS_FILE': '<(DEPTH)/JavaScriptGlue/JavaScriptGlue.exp', 
55           },
56         }],
57       ],
58     },
59     {
60       'target_name': 'Update Version',
61       'type': 'none',
62       'actions': [{
63         'action_name': 'Update Info.plist with version information',
64         'inputs': [],
65          'outputs': [],
66          'action': [
67            'sh', '<(DEPTH)/gyp/update-info-plist.sh', '<(DEPTH)/JavaScriptGlue/Info.plist'
68           ]
69       }],
70     },
71   ], # targets
72 }