OLD | NEW |
---|---|
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 # to appear before libv8_snapshot.a so it's listed explicitly. | 51 # to appear before libv8_snapshot.a so it's listed explicitly. |
52 'dependencies': ['v8_base', 'v8_nosnapshot'], | 52 'dependencies': ['v8_base', 'v8_nosnapshot'], |
53 }], | 53 }], |
54 ['component=="shared_library"', { | 54 ['component=="shared_library"', { |
55 'type': '<(component)', | 55 'type': '<(component)', |
56 'sources': [ | 56 'sources': [ |
57 # Note: on non-Windows we still build this file so that gyp | 57 # Note: on non-Windows we still build this file so that gyp |
58 # has some sources to link into the component. | 58 # has some sources to link into the component. |
59 '../../src/v8dll-main.cc', | 59 '../../src/v8dll-main.cc', |
60 ], | 60 ], |
61 'defines': [ | |
62 'V8_SHARED', | |
63 'BUILDING_V8_SHARED', | |
64 ], | |
65 'direct_dependent_settings': { | |
66 'defines': [ | |
67 'V8_SHARED', | |
68 'USING_V8_SHARED', | |
69 ], | |
70 }, | |
61 'conditions': [ | 71 'conditions': [ |
62 ['OS=="mac"', { | 72 ['OS=="mac"', { |
63 'xcode_settings': { | 73 'xcode_settings': { |
64 'OTHER_LDFLAGS': ['-dynamiclib', '-all_load'] | 74 'OTHER_LDFLAGS': ['-dynamiclib', '-all_load'] |
65 }, | 75 }, |
66 }], | 76 }], |
67 ['OS=="win"', { | |
68 'defines': [ | |
69 'BUILDING_V8_SHARED', | |
70 ], | |
71 'direct_dependent_settings': { | |
72 'defines': [ | |
73 'USING_V8_SHARED', | |
74 ], | |
75 }, | |
76 }, { | |
77 'defines': [ | |
78 'V8_SHARED', | |
79 ], | |
80 'direct_dependent_settings': { | |
81 'defines': [ | |
82 'V8_SHARED', | |
83 ], | |
84 }, | |
85 }], | |
86 ['soname_version!=""', { | 77 ['soname_version!=""', { |
87 'product_extension': 'so.<(soname_version)', | 78 'product_extension': 'so.<(soname_version)', |
88 }], | 79 }], |
89 ], | 80 ], |
90 }, | 81 }, |
91 { | 82 { |
92 'type': 'none', | 83 'type': 'none', |
93 }], | 84 }], |
94 ], | 85 ], |
95 'direct_dependent_settings': { | 86 'direct_dependent_settings': { |
96 'include_dirs': [ | 87 'include_dirs': [ |
97 '../../include', | 88 '../../include', |
98 ], | 89 ], |
99 }, | 90 }, |
100 }, | 91 }, |
101 { | 92 { |
102 'target_name': 'v8_snapshot', | 93 'target_name': 'v8_snapshot', |
103 'type': '<(library)', | 94 'type': '<(library)', |
104 'conditions': [ | 95 'conditions': [ |
105 ['want_separate_host_toolset==1', { | 96 ['want_separate_host_toolset==1', { |
106 'toolsets': ['host', 'target'], | 97 'toolsets': ['host', 'target'], |
107 'dependencies': ['mksnapshot#host', 'js2c#host'], | 98 'dependencies': ['mksnapshot#host', 'js2c#host'], |
108 }, { | 99 }, { |
109 'toolsets': ['target'], | 100 'toolsets': ['target'], |
110 'dependencies': ['mksnapshot', 'js2c'], | 101 'dependencies': ['mksnapshot', 'js2c'], |
111 }], | 102 }], |
112 ['component=="shared_library"', { | 103 ['component=="shared_library"', { |
113 'conditions': [ | 104 'defines': [ |
114 ['OS=="win"', { | 105 'V8_SHARED', |
115 'defines': [ | 106 'BUILDING_V8_SHARED', |
116 'BUILDING_V8_SHARED', | |
117 ], | |
118 'direct_dependent_settings': { | |
119 'defines': [ | |
120 'USING_V8_SHARED', | |
121 ], | |
122 }, | |
123 }, { | |
124 'defines': [ | |
125 'V8_SHARED', | |
126 ], | |
127 'direct_dependent_settings': { | |
128 'defines': [ | |
129 'V8_SHARED', | |
130 ], | |
131 }, | |
132 }], | |
133 ], | 107 ], |
108 'direct_dependent_settings': { | |
109 'defines': [ | |
110 'V8_SHARED', | |
111 'USING_V8_SHARED', | |
112 ], | |
113 }, | |
134 }], | 114 }], |
135 ], | 115 ], |
136 'dependencies': [ | 116 'dependencies': [ |
137 'v8_base', | 117 'v8_base', |
138 ], | 118 ], |
139 'include_dirs+': [ | 119 'include_dirs+': [ |
140 '../../src', | 120 '../../src', |
141 ], | 121 ], |
142 'sources': [ | 122 'sources': [ |
143 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 123 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
739 '../../src/win32-math.h', | 719 '../../src/win32-math.h', |
740 ], | 720 ], |
741 'msvs_disabled_warnings': [4351, 4355, 4800], | 721 'msvs_disabled_warnings': [4351, 4355, 4800], |
742 'link_settings': { | 722 'link_settings': { |
743 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], | 723 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], |
744 }, | 724 }, |
745 }], | 725 }], |
746 ['component=="shared_library"', { | 726 ['component=="shared_library"', { |
747 'defines': [ | 727 'defines': [ |
748 'BUILDING_V8_SHARED', | 728 'BUILDING_V8_SHARED', |
749 'V8_SHARED', | 729 'V8_SHARED', |
Nico
2012/05/14 23:48:16
See here.
| |
750 ], | 730 ], |
751 }], | 731 }], |
752 ['v8_postmortem_support=="true"', { | 732 ['v8_postmortem_support=="true"', { |
753 'sources': [ | 733 'sources': [ |
754 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', | 734 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc', |
755 ] | 735 ] |
756 }], | 736 }], |
757 ], | 737 ], |
758 }, | 738 }, |
759 { | 739 { |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1006 }], | 986 }], |
1007 ], | 987 ], |
1008 'dependencies': [ | 988 'dependencies': [ |
1009 'v8' | 989 'v8' |
1010 ], | 990 ], |
1011 }, | 991 }, |
1012 ], | 992 ], |
1013 }], | 993 }], |
1014 ], | 994 ], |
1015 } | 995 } |
OLD | NEW |