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