mt-libuv 4.1.01 → 4.1.02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2091) hide show
  1. checksums.yaml +4 -4
  2. data/ext/gyp/.gitignore +1 -0
  3. data/ext/gyp/AUTHORS +17 -0
  4. data/ext/gyp/DEPS +23 -0
  5. data/ext/gyp/LICENSE +27 -0
  6. data/ext/gyp/OWNERS +1 -0
  7. data/ext/gyp/PRESUBMIT.py +125 -0
  8. data/ext/gyp/README.md +5 -0
  9. data/ext/gyp/buildbot/buildbot_run.py +138 -0
  10. data/ext/gyp/buildbot/commit_queue/OWNERS +6 -0
  11. data/ext/gyp/buildbot/commit_queue/README +3 -0
  12. data/ext/gyp/buildbot/commit_queue/cq_config.json +15 -0
  13. data/ext/gyp/buildbot/travis-checkout.sh +27 -0
  14. data/ext/gyp/buildbot/travis-test.sh +12 -0
  15. data/ext/gyp/codereview.settings +6 -0
  16. data/ext/gyp/data/win/large-pdb-shim.cc +12 -0
  17. data/ext/gyp/gyp +8 -0
  18. data/ext/gyp/gyp.bat +5 -0
  19. data/ext/gyp/gyp_main.py +16 -0
  20. data/ext/gyp/gyptest.py +243 -0
  21. data/ext/gyp/pylib/gyp/MSVSNew.py +353 -0
  22. data/ext/gyp/pylib/gyp/MSVSProject.py +208 -0
  23. data/ext/gyp/pylib/gyp/MSVSSettings.py +1106 -0
  24. data/ext/gyp/pylib/gyp/MSVSSettings_test.py +1486 -0
  25. data/ext/gyp/pylib/gyp/MSVSToolFile.py +58 -0
  26. data/ext/gyp/pylib/gyp/MSVSUserFile.py +147 -0
  27. data/ext/gyp/pylib/gyp/MSVSUtil.py +271 -0
  28. data/ext/gyp/pylib/gyp/MSVSVersion.py +504 -0
  29. data/ext/gyp/pylib/gyp/__init__.py +555 -0
  30. data/ext/gyp/pylib/gyp/common.py +619 -0
  31. data/ext/gyp/pylib/gyp/common_test.py +73 -0
  32. data/ext/gyp/pylib/gyp/easy_xml.py +170 -0
  33. data/ext/gyp/pylib/gyp/easy_xml_test.py +106 -0
  34. data/ext/gyp/pylib/gyp/flock_tool.py +54 -0
  35. data/ext/gyp/pylib/gyp/generator/__init__.py +0 -0
  36. data/ext/gyp/pylib/gyp/generator/analyzer.py +744 -0
  37. data/ext/gyp/pylib/gyp/generator/cmake.py +1256 -0
  38. data/ext/gyp/pylib/gyp/generator/dump_dependency_json.py +101 -0
  39. data/ext/gyp/pylib/gyp/generator/eclipse.py +425 -0
  40. data/ext/gyp/pylib/gyp/generator/gypd.py +94 -0
  41. data/ext/gyp/pylib/gyp/generator/gypsh.py +56 -0
  42. data/ext/gyp/pylib/gyp/generator/make.py +2260 -0
  43. data/ext/gyp/pylib/gyp/generator/msvs.py +3537 -0
  44. data/ext/gyp/pylib/gyp/generator/msvs_test.py +40 -0
  45. data/ext/gyp/pylib/gyp/generator/ninja.py +2500 -0
  46. data/ext/gyp/pylib/gyp/generator/ninja_test.py +46 -0
  47. data/ext/gyp/pylib/gyp/generator/xcode.py +1302 -0
  48. data/ext/gyp/pylib/gyp/generator/xcode_test.py +23 -0
  49. data/ext/gyp/pylib/gyp/input.py +2908 -0
  50. data/ext/gyp/pylib/gyp/input_test.py +90 -0
  51. data/ext/gyp/pylib/gyp/mac_tool.py +721 -0
  52. data/ext/gyp/pylib/gyp/msvs_emulation.py +1112 -0
  53. data/ext/gyp/pylib/gyp/ninja_syntax.py +168 -0
  54. data/ext/gyp/pylib/gyp/simple_copy.py +57 -0
  55. data/ext/gyp/pylib/gyp/win_tool.py +326 -0
  56. data/ext/gyp/pylib/gyp/xcode_emulation.py +1800 -0
  57. data/ext/gyp/pylib/gyp/xcode_ninja.py +289 -0
  58. data/ext/gyp/pylib/gyp/xcodeproj_file.py +2995 -0
  59. data/ext/gyp/pylib/gyp/xml_fix.py +68 -0
  60. data/ext/gyp/samples/samples +83 -0
  61. data/ext/gyp/samples/samples.bat +5 -0
  62. data/ext/gyp/setup.py +19 -0
  63. data/ext/gyp/test/actions/generated-header/action.py +11 -0
  64. data/ext/gyp/test/actions/generated-header/main.cc +7 -0
  65. data/ext/gyp/test/actions/generated-header/test.gyp +34 -0
  66. data/ext/gyp/test/actions/gyptest-all.py +101 -0
  67. data/ext/gyp/test/actions/gyptest-default.py +68 -0
  68. data/ext/gyp/test/actions/gyptest-errors.py +24 -0
  69. data/ext/gyp/test/actions/gyptest-generated-header.py +38 -0
  70. data/ext/gyp/test/actions/src/action_missing_name.gyp +24 -0
  71. data/ext/gyp/test/actions/src/actions.gyp +114 -0
  72. data/ext/gyp/test/actions/src/confirm-dep-files.py +21 -0
  73. data/ext/gyp/test/actions/src/subdir1/counter.py +44 -0
  74. data/ext/gyp/test/actions/src/subdir1/executable.gyp +74 -0
  75. data/ext/gyp/test/actions/src/subdir1/make-prog1.py +20 -0
  76. data/ext/gyp/test/actions/src/subdir1/make-prog2.py +20 -0
  77. data/ext/gyp/test/actions/src/subdir1/program.c +12 -0
  78. data/ext/gyp/test/actions/src/subdir2/make-file.py +11 -0
  79. data/ext/gyp/test/actions/src/subdir2/none.gyp +33 -0
  80. data/ext/gyp/test/actions/src/subdir3/generate_main.py +21 -0
  81. data/ext/gyp/test/actions/src/subdir3/null_input.gyp +29 -0
  82. data/ext/gyp/test/actions-bare/gyptest-bare.py +24 -0
  83. data/ext/gyp/test/actions-bare/src/bare.gyp +25 -0
  84. data/ext/gyp/test/actions-bare/src/bare.py +11 -0
  85. data/ext/gyp/test/actions-depfile/depfile.gyp +42 -0
  86. data/ext/gyp/test/actions-depfile/gyptest-all.py +30 -0
  87. data/ext/gyp/test/actions-depfile/input.txt +1 -0
  88. data/ext/gyp/test/actions-depfile/touch.py +18 -0
  89. data/ext/gyp/test/actions-multiple/gyptest-all.py +72 -0
  90. data/ext/gyp/test/actions-multiple/src/actions.gyp +226 -0
  91. data/ext/gyp/test/actions-multiple/src/copyfile.py +9 -0
  92. data/ext/gyp/test/actions-multiple/src/filter.py +12 -0
  93. data/ext/gyp/test/actions-multiple/src/foo.c +11 -0
  94. data/ext/gyp/test/actions-multiple/src/input.txt +1 -0
  95. data/ext/gyp/test/actions-multiple/src/main.c +22 -0
  96. data/ext/gyp/test/actions-multiple-outputs/gyptest-multiple-outputs.py +45 -0
  97. data/ext/gyp/test/actions-multiple-outputs/src/multiple-outputs.gyp +23 -0
  98. data/ext/gyp/test/actions-multiple-outputs/src/touch.py +16 -0
  99. data/ext/gyp/test/actions-multiple-outputs-with-dependencies/gyptest-action.py +45 -0
  100. data/ext/gyp/test/actions-multiple-outputs-with-dependencies/src/action.gyp +28 -0
  101. data/ext/gyp/test/actions-multiple-outputs-with-dependencies/src/rcopy.py +20 -0
  102. data/ext/gyp/test/actions-none/gyptest-none.py +24 -0
  103. data/ext/gyp/test/actions-none/src/fake_cross.py +12 -0
  104. data/ext/gyp/test/actions-none/src/foo.cc +1 -0
  105. data/ext/gyp/test/actions-none/src/none_with_source_files.gyp +35 -0
  106. data/ext/gyp/test/actions-subdir/gyptest-action.py +26 -0
  107. data/ext/gyp/test/actions-subdir/src/make-file.py +11 -0
  108. data/ext/gyp/test/actions-subdir/src/none.gyp +31 -0
  109. data/ext/gyp/test/actions-subdir/src/subdir/make-subdir-file.py +11 -0
  110. data/ext/gyp/test/actions-subdir/src/subdir/subdir.gyp +28 -0
  111. data/ext/gyp/test/additional-targets/gyptest-additional.py +63 -0
  112. data/ext/gyp/test/additional-targets/src/all.gyp +13 -0
  113. data/ext/gyp/test/additional-targets/src/dir1/actions.gyp +56 -0
  114. data/ext/gyp/test/additional-targets/src/dir1/emit.py +11 -0
  115. data/ext/gyp/test/additional-targets/src/dir1/lib1.c +6 -0
  116. data/ext/gyp/test/analyzer/common.gypi +6 -0
  117. data/ext/gyp/test/analyzer/gyptest-analyzer.py +427 -0
  118. data/ext/gyp/test/analyzer/static_library_test.gyp +34 -0
  119. data/ext/gyp/test/analyzer/subdir/subdir.gyp +36 -0
  120. data/ext/gyp/test/analyzer/subdir/subdir2/subdir2.gyp +15 -0
  121. data/ext/gyp/test/analyzer/subdir2/subdir.gyp +18 -0
  122. data/ext/gyp/test/analyzer/subdir2/subdir.includes.gypi +9 -0
  123. data/ext/gyp/test/analyzer/test.gyp +114 -0
  124. data/ext/gyp/test/analyzer/test2.gyp +25 -0
  125. data/ext/gyp/test/analyzer/test2.includes.gypi +13 -0
  126. data/ext/gyp/test/analyzer/test2.includes.includes.gypi +9 -0
  127. data/ext/gyp/test/analyzer/test2.toplevel_includes.gypi +15 -0
  128. data/ext/gyp/test/analyzer/test3.gyp +77 -0
  129. data/ext/gyp/test/analyzer/test4.gyp +80 -0
  130. data/ext/gyp/test/analyzer/test5.gyp +25 -0
  131. data/ext/gyp/test/arflags/gyptest-arflags.py +26 -0
  132. data/ext/gyp/test/arflags/lib.cc +0 -0
  133. data/ext/gyp/test/arflags/test.gyp +10 -0
  134. data/ext/gyp/test/assembly/gyptest-assembly.py +31 -0
  135. data/ext/gyp/test/assembly/gyptest-override.py +24 -0
  136. data/ext/gyp/test/assembly/src/as.bat +4 -0
  137. data/ext/gyp/test/assembly/src/assembly.gyp +62 -0
  138. data/ext/gyp/test/assembly/src/lib1.S +15 -0
  139. data/ext/gyp/test/assembly/src/lib1.c +3 -0
  140. data/ext/gyp/test/assembly/src/override.gyp +34 -0
  141. data/ext/gyp/test/assembly/src/override_asm.asm +8 -0
  142. data/ext/gyp/test/assembly/src/program.c +12 -0
  143. data/ext/gyp/test/build-option/gyptest-build.py +27 -0
  144. data/ext/gyp/test/build-option/hello.c +13 -0
  145. data/ext/gyp/test/build-option/hello.gyp +15 -0
  146. data/ext/gyp/test/builddir/gyptest-all.py +85 -0
  147. data/ext/gyp/test/builddir/gyptest-default.py +85 -0
  148. data/ext/gyp/test/builddir/src/builddir.gypi +18 -0
  149. data/ext/gyp/test/builddir/src/func1.c +6 -0
  150. data/ext/gyp/test/builddir/src/func2.c +6 -0
  151. data/ext/gyp/test/builddir/src/func3.c +6 -0
  152. data/ext/gyp/test/builddir/src/func4.c +6 -0
  153. data/ext/gyp/test/builddir/src/func5.c +6 -0
  154. data/ext/gyp/test/builddir/src/prog1.c +10 -0
  155. data/ext/gyp/test/builddir/src/prog1.gyp +30 -0
  156. data/ext/gyp/test/builddir/src/subdir2/prog2.c +10 -0
  157. data/ext/gyp/test/builddir/src/subdir2/prog2.gyp +19 -0
  158. data/ext/gyp/test/builddir/src/subdir2/subdir3/prog3.c +10 -0
  159. data/ext/gyp/test/builddir/src/subdir2/subdir3/prog3.gyp +19 -0
  160. data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.c +10 -0
  161. data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.gyp +19 -0
  162. data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.c +10 -0
  163. data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.gyp +19 -0
  164. data/ext/gyp/test/cflags/cflags.c +15 -0
  165. data/ext/gyp/test/cflags/cflags.gyp +23 -0
  166. data/ext/gyp/test/cflags/gyptest-cflags.py +75 -0
  167. data/ext/gyp/test/compilable/gyptest-headers.py +29 -0
  168. data/ext/gyp/test/compilable/src/headers.gyp +26 -0
  169. data/ext/gyp/test/compilable/src/lib1.cpp +7 -0
  170. data/ext/gyp/test/compilable/src/lib1.hpp +6 -0
  171. data/ext/gyp/test/compilable/src/program.cpp +9 -0
  172. data/ext/gyp/test/compiler-override/compiler-exe.gyp +16 -0
  173. data/ext/gyp/test/compiler-override/compiler-global-settings.gyp.in +34 -0
  174. data/ext/gyp/test/compiler-override/compiler-host.gyp +17 -0
  175. data/ext/gyp/test/compiler-override/compiler-shared-lib.gyp +16 -0
  176. data/ext/gyp/test/compiler-override/cxxtest.cc +7 -0
  177. data/ext/gyp/test/compiler-override/gyptest-compiler-env-toolchain.py +78 -0
  178. data/ext/gyp/test/compiler-override/gyptest-compiler-env.py +110 -0
  179. data/ext/gyp/test/compiler-override/gyptest-compiler-global-settings.py +82 -0
  180. data/ext/gyp/test/compiler-override/my_cc.py +7 -0
  181. data/ext/gyp/test/compiler-override/my_cxx.py +7 -0
  182. data/ext/gyp/test/compiler-override/my_ld.py +7 -0
  183. data/ext/gyp/test/compiler-override/my_nm.py +9 -0
  184. data/ext/gyp/test/compiler-override/my_readelf.py +9 -0
  185. data/ext/gyp/test/compiler-override/test.c +7 -0
  186. data/ext/gyp/test/conditions/elseif/elseif.gyp +43 -0
  187. data/ext/gyp/test/conditions/elseif/elseif_bad1.gyp +20 -0
  188. data/ext/gyp/test/conditions/elseif/elseif_bad2.gyp +22 -0
  189. data/ext/gyp/test/conditions/elseif/elseif_bad3.gyp +23 -0
  190. data/ext/gyp/test/conditions/elseif/elseif_conditions.gypi +15 -0
  191. data/ext/gyp/test/conditions/elseif/gyptest_elseif.py +33 -0
  192. data/ext/gyp/test/conditions/elseif/program.cc +10 -0
  193. data/ext/gyp/test/configurations/basics/configurations.c +15 -0
  194. data/ext/gyp/test/configurations/basics/configurations.gyp +32 -0
  195. data/ext/gyp/test/configurations/basics/gyptest-configurations.py +29 -0
  196. data/ext/gyp/test/configurations/inheritance/configurations.c +21 -0
  197. data/ext/gyp/test/configurations/inheritance/configurations.gyp +40 -0
  198. data/ext/gyp/test/configurations/inheritance/duplicates.gyp +27 -0
  199. data/ext/gyp/test/configurations/inheritance/duplicates.gypd.golden +12 -0
  200. data/ext/gyp/test/configurations/inheritance/gyptest-duplicates.py +36 -0
  201. data/ext/gyp/test/configurations/inheritance/gyptest-inheritance.py +33 -0
  202. data/ext/gyp/test/configurations/invalid/actions.gyp +18 -0
  203. data/ext/gyp/test/configurations/invalid/all_dependent_settings.gyp +18 -0
  204. data/ext/gyp/test/configurations/invalid/configurations.gyp +18 -0
  205. data/ext/gyp/test/configurations/invalid/dependencies.gyp +18 -0
  206. data/ext/gyp/test/configurations/invalid/direct_dependent_settings.gyp +18 -0
  207. data/ext/gyp/test/configurations/invalid/gyptest-configurations.py +36 -0
  208. data/ext/gyp/test/configurations/invalid/libraries.gyp +18 -0
  209. data/ext/gyp/test/configurations/invalid/link_settings.gyp +18 -0
  210. data/ext/gyp/test/configurations/invalid/sources.gyp +18 -0
  211. data/ext/gyp/test/configurations/invalid/standalone_static_library.gyp +17 -0
  212. data/ext/gyp/test/configurations/invalid/target_name.gyp +18 -0
  213. data/ext/gyp/test/configurations/invalid/type.gyp +18 -0
  214. data/ext/gyp/test/configurations/target_platform/configurations.gyp +58 -0
  215. data/ext/gyp/test/configurations/target_platform/front.c +8 -0
  216. data/ext/gyp/test/configurations/target_platform/gyptest-target_platform.py +40 -0
  217. data/ext/gyp/test/configurations/target_platform/left.c +3 -0
  218. data/ext/gyp/test/configurations/target_platform/right.c +3 -0
  219. data/ext/gyp/test/configurations/x64/configurations.c +12 -0
  220. data/ext/gyp/test/configurations/x64/configurations.gyp +38 -0
  221. data/ext/gyp/test/configurations/x64/gyptest-x86.py +31 -0
  222. data/ext/gyp/test/copies/gyptest-all.py +42 -0
  223. data/ext/gyp/test/copies/gyptest-attribs.py +41 -0
  224. data/ext/gyp/test/copies/gyptest-default.py +42 -0
  225. data/ext/gyp/test/copies/gyptest-samedir.py +28 -0
  226. data/ext/gyp/test/copies/gyptest-slash.py +39 -0
  227. data/ext/gyp/test/copies/gyptest-sourceless-shared-lib.py +20 -0
  228. data/ext/gyp/test/copies/gyptest-updir.py +32 -0
  229. data/ext/gyp/test/copies/src/copies-attribs.gyp +20 -0
  230. data/ext/gyp/test/copies/src/copies-samedir.gyp +37 -0
  231. data/ext/gyp/test/copies/src/copies-slash.gyp +36 -0
  232. data/ext/gyp/test/copies/src/copies-sourceless-shared-lib.gyp +27 -0
  233. data/ext/gyp/test/copies/src/copies-updir.gyp +21 -0
  234. data/ext/gyp/test/copies/src/copies.gyp +70 -0
  235. data/ext/gyp/test/copies/src/directory/file3 +1 -0
  236. data/ext/gyp/test/copies/src/directory/file4 +1 -0
  237. data/ext/gyp/test/copies/src/directory/subdir/file5 +1 -0
  238. data/ext/gyp/test/copies/src/executable-file.sh +3 -0
  239. data/ext/gyp/test/copies/src/file1 +1 -0
  240. data/ext/gyp/test/copies/src/file2 +1 -0
  241. data/ext/gyp/test/copies/src/foo.c +13 -0
  242. data/ext/gyp/test/copies/src/parentdir/subdir/file6 +1 -0
  243. data/ext/gyp/test/custom-generator/gyptest-custom-generator.py +18 -0
  244. data/ext/gyp/test/custom-generator/mygenerator.py +14 -0
  245. data/ext/gyp/test/custom-generator/test.gyp +15 -0
  246. data/ext/gyp/test/cxxflags/cxxflags.cc +15 -0
  247. data/ext/gyp/test/cxxflags/cxxflags.gyp +15 -0
  248. data/ext/gyp/test/cxxflags/gyptest-cxxflags.py +45 -0
  249. data/ext/gyp/test/defines/defines-env.gyp +22 -0
  250. data/ext/gyp/test/defines/defines.c +23 -0
  251. data/ext/gyp/test/defines/defines.gyp +38 -0
  252. data/ext/gyp/test/defines/gyptest-define-override.py +43 -0
  253. data/ext/gyp/test/defines/gyptest-defines-env-regyp.py +51 -0
  254. data/ext/gyp/test/defines/gyptest-defines-env.py +85 -0
  255. data/ext/gyp/test/defines/gyptest-defines.py +39 -0
  256. data/ext/gyp/test/defines-escaping/defines-escaping.c +11 -0
  257. data/ext/gyp/test/defines-escaping/defines-escaping.gyp +19 -0
  258. data/ext/gyp/test/defines-escaping/gyptest-defines-escaping.py +184 -0
  259. data/ext/gyp/test/dependencies/a.c +9 -0
  260. data/ext/gyp/test/dependencies/adso/all_dependent_settings_order.gyp +45 -0
  261. data/ext/gyp/test/dependencies/adso/write_args.py +11 -0
  262. data/ext/gyp/test/dependencies/b/b.c +3 -0
  263. data/ext/gyp/test/dependencies/b/b.gyp +22 -0
  264. data/ext/gyp/test/dependencies/b/b3.c +9 -0
  265. data/ext/gyp/test/dependencies/c/c.c +4 -0
  266. data/ext/gyp/test/dependencies/c/c.gyp +22 -0
  267. data/ext/gyp/test/dependencies/c/d.c +3 -0
  268. data/ext/gyp/test/dependencies/double_dependency.gyp +23 -0
  269. data/ext/gyp/test/dependencies/double_dependent.gyp +12 -0
  270. data/ext/gyp/test/dependencies/extra_targets.gyp +18 -0
  271. data/ext/gyp/test/dependencies/gyptest-all-dependent-settings-order.py +19 -0
  272. data/ext/gyp/test/dependencies/gyptest-double-dependency.py +19 -0
  273. data/ext/gyp/test/dependencies/gyptest-extra-targets.py +22 -0
  274. data/ext/gyp/test/dependencies/gyptest-indirect-module-dependency.py +22 -0
  275. data/ext/gyp/test/dependencies/gyptest-lib-only.py +39 -0
  276. data/ext/gyp/test/dependencies/gyptest-none-traversal.py +25 -0
  277. data/ext/gyp/test/dependencies/gyptest-sharedlib-linksettings.py +21 -0
  278. data/ext/gyp/test/dependencies/lib_only.gyp +16 -0
  279. data/ext/gyp/test/dependencies/main.c +14 -0
  280. data/ext/gyp/test/dependencies/module-dep/a.cc +7 -0
  281. data/ext/gyp/test/dependencies/module-dep/dll.cc +9 -0
  282. data/ext/gyp/test/dependencies/module-dep/exe.cc +7 -0
  283. data/ext/gyp/test/dependencies/module-dep/indirect-module-dependency.gyp +37 -0
  284. data/ext/gyp/test/dependencies/none_traversal.gyp +46 -0
  285. data/ext/gyp/test/dependencies/sharedlib-linksettings/program.c +25 -0
  286. data/ext/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c +16 -0
  287. data/ext/gyp/test/dependencies/sharedlib-linksettings/staticlib.c +24 -0
  288. data/ext/gyp/test/dependencies/sharedlib-linksettings/test.gyp +37 -0
  289. data/ext/gyp/test/dependency-copy/gyptest-copy.py +26 -0
  290. data/ext/gyp/test/dependency-copy/src/copies.gyp +25 -0
  291. data/ext/gyp/test/dependency-copy/src/file1.c +7 -0
  292. data/ext/gyp/test/dependency-copy/src/file2.c +7 -0
  293. data/ext/gyp/test/dependent-settings/nested-dependent-settings/all-dependent-settings.gyp +19 -0
  294. data/ext/gyp/test/dependent-settings/nested-dependent-settings/direct-dependent-settings.gyp +19 -0
  295. data/ext/gyp/test/dependent-settings/nested-dependent-settings/gyptest-nested-dependent-settings.py +18 -0
  296. data/ext/gyp/test/determinism/determinism.gyp +59 -0
  297. data/ext/gyp/test/determinism/empty-targets.gyp +32 -0
  298. data/ext/gyp/test/determinism/gyptest-determinism.py +30 -0
  299. data/ext/gyp/test/determinism/gyptest-empty-target-names.py +30 -0
  300. data/ext/gyp/test/determinism/gyptest-needed-variables.py +30 -0
  301. data/ext/gyp/test/determinism/gyptest-solibs.py +37 -0
  302. data/ext/gyp/test/determinism/main.cc +5 -0
  303. data/ext/gyp/test/determinism/needed-variables.gyp +33 -0
  304. data/ext/gyp/test/determinism/rule.py +8 -0
  305. data/ext/gyp/test/determinism/solib.cc +8 -0
  306. data/ext/gyp/test/determinism/solibs.gyp +32 -0
  307. data/ext/gyp/test/empty-target/empty-target.gyp +12 -0
  308. data/ext/gyp/test/empty-target/gyptest-empty-target.py +18 -0
  309. data/ext/gyp/test/errors/dependency_cycle.gyp +23 -0
  310. data/ext/gyp/test/errors/duplicate_basenames.gyp +13 -0
  311. data/ext/gyp/test/errors/duplicate_node.gyp +12 -0
  312. data/ext/gyp/test/errors/duplicate_rule.gyp +22 -0
  313. data/ext/gyp/test/errors/duplicate_targets.gyp +14 -0
  314. data/ext/gyp/test/errors/error_command.gyp +12 -0
  315. data/ext/gyp/test/errors/file_cycle0.gyp +17 -0
  316. data/ext/gyp/test/errors/file_cycle1.gyp +13 -0
  317. data/ext/gyp/test/errors/gyptest-errors.py +80 -0
  318. data/ext/gyp/test/errors/missing_command.gyp +12 -0
  319. data/ext/gyp/test/errors/missing_dep.gyp +15 -0
  320. data/ext/gyp/test/errors/missing_targets.gyp +8 -0
  321. data/ext/gyp/test/escaping/colon/test.gyp +21 -0
  322. data/ext/gyp/test/escaping/gyptest-colon.py +51 -0
  323. data/ext/gyp/test/exclusion/exclusion.gyp +23 -0
  324. data/ext/gyp/test/exclusion/gyptest-exclusion.py +22 -0
  325. data/ext/gyp/test/exclusion/hello.c +15 -0
  326. data/ext/gyp/test/external-cross-compile/gyptest-cross.py +31 -0
  327. data/ext/gyp/test/external-cross-compile/src/bogus1.cc +1 -0
  328. data/ext/gyp/test/external-cross-compile/src/bogus2.c +1 -0
  329. data/ext/gyp/test/external-cross-compile/src/cross.gyp +83 -0
  330. data/ext/gyp/test/external-cross-compile/src/cross_compile.gypi +23 -0
  331. data/ext/gyp/test/external-cross-compile/src/fake_cross.py +18 -0
  332. data/ext/gyp/test/external-cross-compile/src/program.cc +16 -0
  333. data/ext/gyp/test/external-cross-compile/src/test1.cc +1 -0
  334. data/ext/gyp/test/external-cross-compile/src/test2.c +1 -0
  335. data/ext/gyp/test/external-cross-compile/src/test3.cc +1 -0
  336. data/ext/gyp/test/external-cross-compile/src/test4.c +1 -0
  337. data/ext/gyp/test/external-cross-compile/src/tochar.py +13 -0
  338. data/ext/gyp/test/generator-output/actions/actions.gyp +16 -0
  339. data/ext/gyp/test/generator-output/actions/build/README.txt +4 -0
  340. data/ext/gyp/test/generator-output/actions/subdir1/actions-out/README.txt +4 -0
  341. data/ext/gyp/test/generator-output/actions/subdir1/build/README.txt +4 -0
  342. data/ext/gyp/test/generator-output/actions/subdir1/executable.gyp +44 -0
  343. data/ext/gyp/test/generator-output/actions/subdir1/make-prog1.py +20 -0
  344. data/ext/gyp/test/generator-output/actions/subdir1/make-prog2.py +20 -0
  345. data/ext/gyp/test/generator-output/actions/subdir1/program.c +12 -0
  346. data/ext/gyp/test/generator-output/actions/subdir2/actions-out/README.txt +4 -0
  347. data/ext/gyp/test/generator-output/actions/subdir2/build/README.txt +4 -0
  348. data/ext/gyp/test/generator-output/actions/subdir2/make-file.py +11 -0
  349. data/ext/gyp/test/generator-output/actions/subdir2/none.gyp +31 -0
  350. data/ext/gyp/test/generator-output/copies/build/README.txt +4 -0
  351. data/ext/gyp/test/generator-output/copies/copies-out/README.txt +4 -0
  352. data/ext/gyp/test/generator-output/copies/copies.gyp +50 -0
  353. data/ext/gyp/test/generator-output/copies/file1 +1 -0
  354. data/ext/gyp/test/generator-output/copies/file2 +1 -0
  355. data/ext/gyp/test/generator-output/copies/subdir/build/README.txt +4 -0
  356. data/ext/gyp/test/generator-output/copies/subdir/copies-out/README.txt +4 -0
  357. data/ext/gyp/test/generator-output/copies/subdir/file3 +1 -0
  358. data/ext/gyp/test/generator-output/copies/subdir/file4 +1 -0
  359. data/ext/gyp/test/generator-output/copies/subdir/subdir.gyp +32 -0
  360. data/ext/gyp/test/generator-output/gyptest-actions.py +57 -0
  361. data/ext/gyp/test/generator-output/gyptest-copies.py +59 -0
  362. data/ext/gyp/test/generator-output/gyptest-depth.py +58 -0
  363. data/ext/gyp/test/generator-output/gyptest-mac-bundle.py +33 -0
  364. data/ext/gyp/test/generator-output/gyptest-relocate.py +59 -0
  365. data/ext/gyp/test/generator-output/gyptest-rules.py +58 -0
  366. data/ext/gyp/test/generator-output/gyptest-subdir2-deep.py +36 -0
  367. data/ext/gyp/test/generator-output/gyptest-symlink.py +44 -0
  368. data/ext/gyp/test/generator-output/gyptest-top-all.py +53 -0
  369. data/ext/gyp/test/generator-output/mac-bundle/Info.plist +32 -0
  370. data/ext/gyp/test/generator-output/mac-bundle/app.order +1 -0
  371. data/ext/gyp/test/generator-output/mac-bundle/header.h +1 -0
  372. data/ext/gyp/test/generator-output/mac-bundle/main.c +1 -0
  373. data/ext/gyp/test/generator-output/mac-bundle/resource.sb +1 -0
  374. data/ext/gyp/test/generator-output/mac-bundle/test.gyp +25 -0
  375. data/ext/gyp/test/generator-output/rules/build/README.txt +4 -0
  376. data/ext/gyp/test/generator-output/rules/copy-file.py +12 -0
  377. data/ext/gyp/test/generator-output/rules/rules.gyp +16 -0
  378. data/ext/gyp/test/generator-output/rules/subdir1/build/README.txt +4 -0
  379. data/ext/gyp/test/generator-output/rules/subdir1/define3.in0 +1 -0
  380. data/ext/gyp/test/generator-output/rules/subdir1/define4.in0 +1 -0
  381. data/ext/gyp/test/generator-output/rules/subdir1/executable.gyp +59 -0
  382. data/ext/gyp/test/generator-output/rules/subdir1/function1.in1 +6 -0
  383. data/ext/gyp/test/generator-output/rules/subdir1/function2.in1 +6 -0
  384. data/ext/gyp/test/generator-output/rules/subdir1/program.c +18 -0
  385. data/ext/gyp/test/generator-output/rules/subdir2/build/README.txt +4 -0
  386. data/ext/gyp/test/generator-output/rules/subdir2/file1.in0 +1 -0
  387. data/ext/gyp/test/generator-output/rules/subdir2/file2.in0 +1 -0
  388. data/ext/gyp/test/generator-output/rules/subdir2/file3.in1 +1 -0
  389. data/ext/gyp/test/generator-output/rules/subdir2/file4.in1 +1 -0
  390. data/ext/gyp/test/generator-output/rules/subdir2/none.gyp +49 -0
  391. data/ext/gyp/test/generator-output/rules/subdir2/rules-out/README.txt +4 -0
  392. data/ext/gyp/test/generator-output/src/build/README.txt +4 -0
  393. data/ext/gyp/test/generator-output/src/inc.h +1 -0
  394. data/ext/gyp/test/generator-output/src/inc1/include1.h +1 -0
  395. data/ext/gyp/test/generator-output/src/prog1.c +18 -0
  396. data/ext/gyp/test/generator-output/src/prog1.gyp +28 -0
  397. data/ext/gyp/test/generator-output/src/subdir2/build/README.txt +4 -0
  398. data/ext/gyp/test/generator-output/src/subdir2/deeper/build/README.txt +4 -0
  399. data/ext/gyp/test/generator-output/src/subdir2/deeper/deeper.c +7 -0
  400. data/ext/gyp/test/generator-output/src/subdir2/deeper/deeper.gyp +18 -0
  401. data/ext/gyp/test/generator-output/src/subdir2/deeper/deeper.h +1 -0
  402. data/ext/gyp/test/generator-output/src/subdir2/inc2/include2.h +1 -0
  403. data/ext/gyp/test/generator-output/src/subdir2/prog2.c +18 -0
  404. data/ext/gyp/test/generator-output/src/subdir2/prog2.gyp +28 -0
  405. data/ext/gyp/test/generator-output/src/subdir3/build/README.txt +4 -0
  406. data/ext/gyp/test/generator-output/src/subdir3/inc3/include3.h +1 -0
  407. data/ext/gyp/test/generator-output/src/subdir3/prog3.c +18 -0
  408. data/ext/gyp/test/generator-output/src/subdir3/prog3.gyp +25 -0
  409. data/ext/gyp/test/generator-output/src/symroot.gypi +16 -0
  410. data/ext/gyp/test/gyp-defines/defines.gyp +26 -0
  411. data/ext/gyp/test/gyp-defines/echo.py +11 -0
  412. data/ext/gyp/test/gyp-defines/gyptest-multiple-values.py +36 -0
  413. data/ext/gyp/test/gyp-defines/gyptest-regyp.py +40 -0
  414. data/ext/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py +37 -0
  415. data/ext/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py +36 -0
  416. data/ext/gyp/test/hard_dependency/src/a.c +9 -0
  417. data/ext/gyp/test/hard_dependency/src/a.h +12 -0
  418. data/ext/gyp/test/hard_dependency/src/b.c +9 -0
  419. data/ext/gyp/test/hard_dependency/src/b.h +12 -0
  420. data/ext/gyp/test/hard_dependency/src/c.c +10 -0
  421. data/ext/gyp/test/hard_dependency/src/c.h +10 -0
  422. data/ext/gyp/test/hard_dependency/src/d.c +9 -0
  423. data/ext/gyp/test/hard_dependency/src/emit.py +11 -0
  424. data/ext/gyp/test/hard_dependency/src/hard_dependency.gyp +78 -0
  425. data/ext/gyp/test/hello/gyptest-all.py +24 -0
  426. data/ext/gyp/test/hello/gyptest-default.py +24 -0
  427. data/ext/gyp/test/hello/gyptest-disable-regyp.py +32 -0
  428. data/ext/gyp/test/hello/gyptest-regyp-output.py +36 -0
  429. data/ext/gyp/test/hello/gyptest-regyp.py +32 -0
  430. data/ext/gyp/test/hello/gyptest-target.py +24 -0
  431. data/ext/gyp/test/hello/hello.c +11 -0
  432. data/ext/gyp/test/hello/hello.gyp +15 -0
  433. data/ext/gyp/test/hello/hello2.c +11 -0
  434. data/ext/gyp/test/hello/hello2.gyp +15 -0
  435. data/ext/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py +31 -0
  436. data/ext/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py +33 -0
  437. data/ext/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py +44 -0
  438. data/ext/gyp/test/home_dot_gyp/gyptest-home-includes.py +30 -0
  439. data/ext/gyp/test/home_dot_gyp/home/.gyp/include.gypi +5 -0
  440. data/ext/gyp/test/home_dot_gyp/home2/.gyp/include.gypi +5 -0
  441. data/ext/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi +5 -0
  442. data/ext/gyp/test/home_dot_gyp/src/all.gyp +22 -0
  443. data/ext/gyp/test/home_dot_gyp/src/printfoo.c +7 -0
  444. data/ext/gyp/test/include_dirs/gyptest-all.py +43 -0
  445. data/ext/gyp/test/include_dirs/gyptest-default.py +43 -0
  446. data/ext/gyp/test/include_dirs/src/inc.h +1 -0
  447. data/ext/gyp/test/include_dirs/src/inc1/include1.h +1 -0
  448. data/ext/gyp/test/include_dirs/src/includes.c +19 -0
  449. data/ext/gyp/test/include_dirs/src/includes.gyp +27 -0
  450. data/ext/gyp/test/include_dirs/src/shadow1/shadow.h +1 -0
  451. data/ext/gyp/test/include_dirs/src/shadow2/shadow.h +1 -0
  452. data/ext/gyp/test/include_dirs/src/subdir/inc.h +1 -0
  453. data/ext/gyp/test/include_dirs/src/subdir/inc2/include2.h +1 -0
  454. data/ext/gyp/test/include_dirs/src/subdir/subdir_includes.c +14 -0
  455. data/ext/gyp/test/include_dirs/src/subdir/subdir_includes.gyp +20 -0
  456. data/ext/gyp/test/intermediate_dir/gyptest-intermediate-dir.py +44 -0
  457. data/ext/gyp/test/intermediate_dir/src/script.py +22 -0
  458. data/ext/gyp/test/intermediate_dir/src/shared_infile.txt +1 -0
  459. data/ext/gyp/test/intermediate_dir/src/test.gyp +42 -0
  460. data/ext/gyp/test/intermediate_dir/src/test2.gyp +42 -0
  461. data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings +3 -0
  462. data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
  463. data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist +8 -0
  464. data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib +17 -0
  465. data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard +27 -0
  466. data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
  467. data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json +23 -0
  468. data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png +0 -0
  469. data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png +0 -0
  470. data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png +0 -0
  471. data/ext/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist +28 -0
  472. data/ext/gyp/test/ios/app-bundle/TestApp/check_no_signature.py +13 -0
  473. data/ext/gyp/test/ios/app-bundle/TestApp/main.m +13 -0
  474. data/ext/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m +7 -0
  475. data/ext/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m +7 -0
  476. data/ext/gyp/test/ios/app-bundle/test-archs.gyp +109 -0
  477. data/ext/gyp/test/ios/app-bundle/test-assets-catalog.gyp +45 -0
  478. data/ext/gyp/test/ios/app-bundle/test-crosscompile.gyp +47 -0
  479. data/ext/gyp/test/ios/app-bundle/test-device.gyp +109 -0
  480. data/ext/gyp/test/ios/app-bundle/test.gyp +75 -0
  481. data/ext/gyp/test/ios/app-bundle/tool_main.cc +7 -0
  482. data/ext/gyp/test/ios/copies-with-xcode-envvars/Info.plist +24 -0
  483. data/ext/gyp/test/ios/copies-with-xcode-envvars/copies-with-xcode-envvars.gyp +97 -0
  484. data/ext/gyp/test/ios/copies-with-xcode-envvars/empty.c +1 -0
  485. data/ext/gyp/test/ios/copies-with-xcode-envvars/file0 +1 -0
  486. data/ext/gyp/test/ios/copies-with-xcode-envvars/file1 +1 -0
  487. data/ext/gyp/test/ios/copies-with-xcode-envvars/file10 +1 -0
  488. data/ext/gyp/test/ios/copies-with-xcode-envvars/file11 +1 -0
  489. data/ext/gyp/test/ios/copies-with-xcode-envvars/file2 +1 -0
  490. data/ext/gyp/test/ios/copies-with-xcode-envvars/file3 +1 -0
  491. data/ext/gyp/test/ios/copies-with-xcode-envvars/file4 +1 -0
  492. data/ext/gyp/test/ios/copies-with-xcode-envvars/file5 +1 -0
  493. data/ext/gyp/test/ios/copies-with-xcode-envvars/file6 +1 -0
  494. data/ext/gyp/test/ios/copies-with-xcode-envvars/file7 +1 -0
  495. data/ext/gyp/test/ios/copies-with-xcode-envvars/file8 +1 -0
  496. data/ext/gyp/test/ios/copies-with-xcode-envvars/file9 +1 -0
  497. data/ext/gyp/test/ios/deployment-target/check-version-min.c +33 -0
  498. data/ext/gyp/test/ios/deployment-target/deployment-target.gyp +34 -0
  499. data/ext/gyp/test/ios/extension/ActionExtension/ActionViewController.h +9 -0
  500. data/ext/gyp/test/ios/extension/ActionExtension/ActionViewController.m +31 -0
  501. data/ext/gyp/test/ios/extension/ActionExtension/Info.plist +42 -0
  502. data/ext/gyp/test/ios/extension/ActionExtension/MainInterface.storyboard +63 -0
  503. data/ext/gyp/test/ios/extension/ExtensionContainer/AppDelegate.h +12 -0
  504. data/ext/gyp/test/ios/extension/ExtensionContainer/AppDelegate.m +19 -0
  505. data/ext/gyp/test/ios/extension/ExtensionContainer/Base.lproj/Main.storyboard +25 -0
  506. data/ext/gyp/test/ios/extension/ExtensionContainer/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  507. data/ext/gyp/test/ios/extension/ExtensionContainer/Images.xcassets/LaunchImage.launchimage/Contents.json +51 -0
  508. data/ext/gyp/test/ios/extension/ExtensionContainer/Info.plist +32 -0
  509. data/ext/gyp/test/ios/extension/ExtensionContainer/ViewController.h +11 -0
  510. data/ext/gyp/test/ios/extension/ExtensionContainer/ViewController.m +24 -0
  511. data/ext/gyp/test/ios/extension/ExtensionContainer/main.m +13 -0
  512. data/ext/gyp/test/ios/extension/extension.gyp +91 -0
  513. data/ext/gyp/test/ios/framework/framework.gyp +43 -0
  514. data/ext/gyp/test/ios/framework/iOSFramework/Info.plist +26 -0
  515. data/ext/gyp/test/ios/framework/iOSFramework/Thing.h +10 -0
  516. data/ext/gyp/test/ios/framework/iOSFramework/Thing.m +22 -0
  517. data/ext/gyp/test/ios/framework/iOSFramework/iOSFramework.h +9 -0
  518. data/ext/gyp/test/ios/gyptest-app-ios-assets-catalog.py +57 -0
  519. data/ext/gyp/test/ios/gyptest-app-ios.py +76 -0
  520. data/ext/gyp/test/ios/gyptest-archs.py +62 -0
  521. data/ext/gyp/test/ios/gyptest-copies-with-xcode-envvars.py +65 -0
  522. data/ext/gyp/test/ios/gyptest-crosscompile.py +34 -0
  523. data/ext/gyp/test/ios/gyptest-deployment-target.py +23 -0
  524. data/ext/gyp/test/ios/gyptest-extension.py +51 -0
  525. data/ext/gyp/test/ios/gyptest-framework.py +37 -0
  526. data/ext/gyp/test/ios/gyptest-per-config-settings.py +190 -0
  527. data/ext/gyp/test/ios/gyptest-watch.py +44 -0
  528. data/ext/gyp/test/ios/gyptest-xcode-ninja.py +25 -0
  529. data/ext/gyp/test/ios/watch/WatchApp/Images.xcassets/AppIcon.appiconset/Contents.json +62 -0
  530. data/ext/gyp/test/ios/watch/WatchApp/Images.xcassets/LaunchImage.launchimage/Contents.json +24 -0
  531. data/ext/gyp/test/ios/watch/WatchApp/Info.plist +35 -0
  532. data/ext/gyp/test/ios/watch/WatchApp/Interface.storyboard +15 -0
  533. data/ext/gyp/test/ios/watch/WatchContainer/AppDelegate.h +12 -0
  534. data/ext/gyp/test/ios/watch/WatchContainer/AppDelegate.m +19 -0
  535. data/ext/gyp/test/ios/watch/WatchContainer/Base.lproj/Main.storyboard +25 -0
  536. data/ext/gyp/test/ios/watch/WatchContainer/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  537. data/ext/gyp/test/ios/watch/WatchContainer/Images.xcassets/LaunchImage.launchimage/Contents.json +51 -0
  538. data/ext/gyp/test/ios/watch/WatchContainer/Info.plist +32 -0
  539. data/ext/gyp/test/ios/watch/WatchContainer/ViewController.h +11 -0
  540. data/ext/gyp/test/ios/watch/WatchContainer/ViewController.m +24 -0
  541. data/ext/gyp/test/ios/watch/WatchContainer/main.m +13 -0
  542. data/ext/gyp/test/ios/watch/WatchKitExtension/Images.xcassets/MyImage.imageset/Contents.json +20 -0
  543. data/ext/gyp/test/ios/watch/WatchKitExtension/Info.plist +38 -0
  544. data/ext/gyp/test/ios/watch/WatchKitExtension/InterfaceController.h +10 -0
  545. data/ext/gyp/test/ios/watch/WatchKitExtension/InterfaceController.m +25 -0
  546. data/ext/gyp/test/ios/watch/WatchKitExtension/MainInterface.storyboard +63 -0
  547. data/ext/gyp/test/ios/watch/watch.gyp +105 -0
  548. data/ext/gyp/test/ios/xctests/App/AppDelegate.h +11 -0
  549. data/ext/gyp/test/ios/xctests/App/AppDelegate.m +18 -0
  550. data/ext/gyp/test/ios/xctests/App/Base.lproj/LaunchScreen.xib +41 -0
  551. data/ext/gyp/test/ios/xctests/App/Base.lproj/Main.storyboard +25 -0
  552. data/ext/gyp/test/ios/xctests/App/Images.xcassets/AppIcon.appiconset/Contents.json +68 -0
  553. data/ext/gyp/test/ios/xctests/App/Info.plist +47 -0
  554. data/ext/gyp/test/ios/xctests/App/ViewController.h +9 -0
  555. data/ext/gyp/test/ios/xctests/App/ViewController.m +21 -0
  556. data/ext/gyp/test/ios/xctests/App/main.m +13 -0
  557. data/ext/gyp/test/ios/xctests/AppTests/AppTests.m +31 -0
  558. data/ext/gyp/test/ios/xctests/AppTests/Info.plist +24 -0
  559. data/ext/gyp/test/ios/xctests/gyptest-xctests.py +49 -0
  560. data/ext/gyp/test/ios/xctests/xctests.gyp +74 -0
  561. data/ext/gyp/test/lib/README.txt +17 -0
  562. data/ext/gyp/test/lib/TestCmd.py +1597 -0
  563. data/ext/gyp/test/lib/TestCommon.py +591 -0
  564. data/ext/gyp/test/lib/TestGyp.py +1259 -0
  565. data/ext/gyp/test/lib/TestMac.py +76 -0
  566. data/ext/gyp/test/lib/TestWin.py +101 -0
  567. data/ext/gyp/test/library/gyptest-shared-obj-install-path.py +39 -0
  568. data/ext/gyp/test/library/gyptest-shared.py +84 -0
  569. data/ext/gyp/test/library/gyptest-static.py +84 -0
  570. data/ext/gyp/test/library/src/lib1.c +10 -0
  571. data/ext/gyp/test/library/src/lib1_moveable.c +10 -0
  572. data/ext/gyp/test/library/src/lib2.c +10 -0
  573. data/ext/gyp/test/library/src/lib2_moveable.c +10 -0
  574. data/ext/gyp/test/library/src/library.gyp +58 -0
  575. data/ext/gyp/test/library/src/program.c +15 -0
  576. data/ext/gyp/test/library/src/shared_dependency.gyp +33 -0
  577. data/ext/gyp/test/library_dirs/gyptest-library-dirs.py +50 -0
  578. data/ext/gyp/test/library_dirs/subdir/README.txt +1 -0
  579. data/ext/gyp/test/library_dirs/subdir/hello.cc +11 -0
  580. data/ext/gyp/test/library_dirs/subdir/mylib.cc +9 -0
  581. data/ext/gyp/test/library_dirs/subdir/mylib.h +12 -0
  582. data/ext/gyp/test/library_dirs/subdir/test-win.gyp +60 -0
  583. data/ext/gyp/test/library_dirs/subdir/test.gyp +68 -0
  584. data/ext/gyp/test/link-dependency/gyptest-link-dependency.py +23 -0
  585. data/ext/gyp/test/link-dependency/main.c +7 -0
  586. data/ext/gyp/test/link-dependency/mymalloc.c +12 -0
  587. data/ext/gyp/test/link-dependency/test.gyp +37 -0
  588. data/ext/gyp/test/link-objects/base.c +6 -0
  589. data/ext/gyp/test/link-objects/extra.c +5 -0
  590. data/ext/gyp/test/link-objects/gyptest-all.py +28 -0
  591. data/ext/gyp/test/link-objects/link-objects.gyp +24 -0
  592. data/ext/gyp/test/linux/gyptest-implicit-rpath.py +48 -0
  593. data/ext/gyp/test/linux/gyptest-ldflags-duplicates.py +22 -0
  594. data/ext/gyp/test/linux/gyptest-ldflags-from-environment.py +45 -0
  595. data/ext/gyp/test/linux/gyptest-target-rpath.py +43 -0
  596. data/ext/gyp/test/linux/implicit-rpath/file.c +1 -0
  597. data/ext/gyp/test/linux/implicit-rpath/main.c +1 -0
  598. data/ext/gyp/test/linux/implicit-rpath/test.gyp +47 -0
  599. data/ext/gyp/test/linux/ldflags-duplicates/check-ldflags.py +28 -0
  600. data/ext/gyp/test/linux/ldflags-duplicates/lib1.c +6 -0
  601. data/ext/gyp/test/linux/ldflags-duplicates/lib2.c +6 -0
  602. data/ext/gyp/test/linux/ldflags-duplicates/main.c +7 -0
  603. data/ext/gyp/test/linux/ldflags-duplicates/test.gyp +45 -0
  604. data/ext/gyp/test/linux/ldflags-from-environment/main.c +7 -0
  605. data/ext/gyp/test/linux/ldflags-from-environment/test.gyp +23 -0
  606. data/ext/gyp/test/linux/target-rpath/file.c +1 -0
  607. data/ext/gyp/test/linux/target-rpath/main.c +1 -0
  608. data/ext/gyp/test/linux/target-rpath/test.gyp +47 -0
  609. data/ext/gyp/test/mac/action-envvars/action/action.gyp +34 -0
  610. data/ext/gyp/test/mac/action-envvars/action/action.sh +8 -0
  611. data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings +3 -0
  612. data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
  613. data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/MainMenu.xib +4119 -0
  614. data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings +0 -0
  615. data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings +0 -0
  616. data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
  617. data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json +23 -0
  618. data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png +0 -0
  619. data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png +0 -0
  620. data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png +0 -0
  621. data/ext/gyp/test/mac/app-bundle/TestApp/TestApp-Info.plist +34 -0
  622. data/ext/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.h +13 -0
  623. data/ext/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.m +15 -0
  624. data/ext/gyp/test/mac/app-bundle/TestApp/main.m +10 -0
  625. data/ext/gyp/test/mac/app-bundle/empty.c +0 -0
  626. data/ext/gyp/test/mac/app-bundle/test-assets-catalog.gyp +43 -0
  627. data/ext/gyp/test/mac/app-bundle/test-error.gyp +31 -0
  628. data/ext/gyp/test/mac/app-bundle/test.gyp +41 -0
  629. data/ext/gyp/test/mac/archs/empty_main.cc +1 -0
  630. data/ext/gyp/test/mac/archs/file.mm +1 -0
  631. data/ext/gyp/test/mac/archs/file_a.cc +8 -0
  632. data/ext/gyp/test/mac/archs/file_a.h +10 -0
  633. data/ext/gyp/test/mac/archs/file_b.cc +8 -0
  634. data/ext/gyp/test/mac/archs/file_b.h +10 -0
  635. data/ext/gyp/test/mac/archs/file_c.cc +11 -0
  636. data/ext/gyp/test/mac/archs/file_d.cc +11 -0
  637. data/ext/gyp/test/mac/archs/header.h +1 -0
  638. data/ext/gyp/test/mac/archs/my_file.cc +4 -0
  639. data/ext/gyp/test/mac/archs/my_main_file.cc +9 -0
  640. data/ext/gyp/test/mac/archs/test-archs-multiarch.gyp +92 -0
  641. data/ext/gyp/test/mac/archs/test-archs-x86_64.gyp +27 -0
  642. data/ext/gyp/test/mac/archs/test-dependencies.gyp +92 -0
  643. data/ext/gyp/test/mac/archs/test-no-archs.gyp +21 -0
  644. data/ext/gyp/test/mac/archs/test-valid-archs.gyp +28 -0
  645. data/ext/gyp/test/mac/bundle-resources/change.sh +3 -0
  646. data/ext/gyp/test/mac/bundle-resources/executable-file.sh +3 -0
  647. data/ext/gyp/test/mac/bundle-resources/secret.txt +1 -0
  648. data/ext/gyp/test/mac/bundle-resources/test.gyp +59 -0
  649. data/ext/gyp/test/mac/cflags/ccfile.cc +7 -0
  650. data/ext/gyp/test/mac/cflags/ccfile_withcflags.cc +7 -0
  651. data/ext/gyp/test/mac/cflags/cfile.c +7 -0
  652. data/ext/gyp/test/mac/cflags/cppfile.cpp +7 -0
  653. data/ext/gyp/test/mac/cflags/cppfile_withcflags.cpp +7 -0
  654. data/ext/gyp/test/mac/cflags/cxxfile.cxx +7 -0
  655. data/ext/gyp/test/mac/cflags/cxxfile_withcflags.cxx +7 -0
  656. data/ext/gyp/test/mac/cflags/mfile.m +7 -0
  657. data/ext/gyp/test/mac/cflags/mmfile.mm +7 -0
  658. data/ext/gyp/test/mac/cflags/mmfile_withcflags.mm +7 -0
  659. data/ext/gyp/test/mac/cflags/test.gyp +132 -0
  660. data/ext/gyp/test/mac/clang-cxx-language-standard/c++11.cc +8 -0
  661. data/ext/gyp/test/mac/clang-cxx-language-standard/c++98.cc +24 -0
  662. data/ext/gyp/test/mac/clang-cxx-language-standard/clang-cxx-language-standard.gyp +30 -0
  663. data/ext/gyp/test/mac/clang-cxx-library/clang-cxx-library.gyp +32 -0
  664. data/ext/gyp/test/mac/clang-cxx-library/libc++.cc +11 -0
  665. data/ext/gyp/test/mac/clang-cxx-library/libstdc++.cc +11 -0
  666. data/ext/gyp/test/mac/copies-with-xcode-envvars/copies-with-xcode-envvars.gyp +87 -0
  667. data/ext/gyp/test/mac/copies-with-xcode-envvars/empty.c +1 -0
  668. data/ext/gyp/test/mac/copies-with-xcode-envvars/file0 +1 -0
  669. data/ext/gyp/test/mac/copies-with-xcode-envvars/file1 +1 -0
  670. data/ext/gyp/test/mac/copies-with-xcode-envvars/file10 +1 -0
  671. data/ext/gyp/test/mac/copies-with-xcode-envvars/file11 +1 -0
  672. data/ext/gyp/test/mac/copies-with-xcode-envvars/file2 +1 -0
  673. data/ext/gyp/test/mac/copies-with-xcode-envvars/file3 +1 -0
  674. data/ext/gyp/test/mac/copies-with-xcode-envvars/file4 +1 -0
  675. data/ext/gyp/test/mac/copies-with-xcode-envvars/file5 +1 -0
  676. data/ext/gyp/test/mac/copies-with-xcode-envvars/file6 +1 -0
  677. data/ext/gyp/test/mac/copies-with-xcode-envvars/file7 +1 -0
  678. data/ext/gyp/test/mac/copies-with-xcode-envvars/file8 +1 -0
  679. data/ext/gyp/test/mac/copies-with-xcode-envvars/file9 +1 -0
  680. data/ext/gyp/test/mac/copy-dylib/empty.c +1 -0
  681. data/ext/gyp/test/mac/copy-dylib/test.gyp +31 -0
  682. data/ext/gyp/test/mac/debuginfo/file.c +6 -0
  683. data/ext/gyp/test/mac/debuginfo/test.gyp +82 -0
  684. data/ext/gyp/test/mac/depend-on-bundle/English.lproj/InfoPlist.strings +1 -0
  685. data/ext/gyp/test/mac/depend-on-bundle/Info.plist +28 -0
  686. data/ext/gyp/test/mac/depend-on-bundle/bundle.c +1 -0
  687. data/ext/gyp/test/mac/depend-on-bundle/executable.c +4 -0
  688. data/ext/gyp/test/mac/depend-on-bundle/test.gyp +28 -0
  689. data/ext/gyp/test/mac/deployment-target/check-version-min.c +33 -0
  690. data/ext/gyp/test/mac/deployment-target/deployment-target.gyp +28 -0
  691. data/ext/gyp/test/mac/framework/TestFramework/English.lproj/InfoPlist.strings +2 -0
  692. data/ext/gyp/test/mac/framework/TestFramework/Info.plist +28 -0
  693. data/ext/gyp/test/mac/framework/TestFramework/ObjCVector.h +28 -0
  694. data/ext/gyp/test/mac/framework/TestFramework/ObjCVector.mm +63 -0
  695. data/ext/gyp/test/mac/framework/TestFramework/ObjCVectorInternal.h +9 -0
  696. data/ext/gyp/test/mac/framework/TestFramework/TestFramework_Prefix.pch +7 -0
  697. data/ext/gyp/test/mac/framework/empty.c +0 -0
  698. data/ext/gyp/test/mac/framework/framework.gyp +108 -0
  699. data/ext/gyp/test/mac/framework-dirs/calculate.c +15 -0
  700. data/ext/gyp/test/mac/framework-dirs/framework-dirs.gyp +21 -0
  701. data/ext/gyp/test/mac/framework-headers/myframework.h +8 -0
  702. data/ext/gyp/test/mac/framework-headers/myframework.m +8 -0
  703. data/ext/gyp/test/mac/framework-headers/test.gyp +44 -0
  704. data/ext/gyp/test/mac/global-settings/src/dir1/dir1.gyp +11 -0
  705. data/ext/gyp/test/mac/global-settings/src/dir2/dir2.gyp +22 -0
  706. data/ext/gyp/test/mac/global-settings/src/dir2/file.txt +1 -0
  707. data/ext/gyp/test/mac/gyptest-action-envvars.py +36 -0
  708. data/ext/gyp/test/mac/gyptest-app-assets-catalog.py +125 -0
  709. data/ext/gyp/test/mac/gyptest-app-error.py +49 -0
  710. data/ext/gyp/test/mac/gyptest-app.py +122 -0
  711. data/ext/gyp/test/mac/gyptest-archs.py +96 -0
  712. data/ext/gyp/test/mac/gyptest-bundle-resources.py +64 -0
  713. data/ext/gyp/test/mac/gyptest-cflags.py +21 -0
  714. data/ext/gyp/test/mac/gyptest-clang-cxx-language-standard.py +25 -0
  715. data/ext/gyp/test/mac/gyptest-clang-cxx-library.py +32 -0
  716. data/ext/gyp/test/mac/gyptest-copies-with-xcode-envvars.py +65 -0
  717. data/ext/gyp/test/mac/gyptest-copies.py +62 -0
  718. data/ext/gyp/test/mac/gyptest-copy-dylib.py +25 -0
  719. data/ext/gyp/test/mac/gyptest-debuginfo.py +36 -0
  720. data/ext/gyp/test/mac/gyptest-depend-on-bundle.py +45 -0
  721. data/ext/gyp/test/mac/gyptest-deployment-target.py +27 -0
  722. data/ext/gyp/test/mac/gyptest-framework-dirs.py +23 -0
  723. data/ext/gyp/test/mac/gyptest-framework-headers.py +38 -0
  724. data/ext/gyp/test/mac/gyptest-framework.py +80 -0
  725. data/ext/gyp/test/mac/gyptest-global-settings.py +33 -0
  726. data/ext/gyp/test/mac/gyptest-identical-name.py +45 -0
  727. data/ext/gyp/test/mac/gyptest-infoplist-process.py +56 -0
  728. data/ext/gyp/test/mac/gyptest-installname.py +85 -0
  729. data/ext/gyp/test/mac/gyptest-kext.py +27 -0
  730. data/ext/gyp/test/mac/gyptest-ldflags-passed-to-libtool.py +37 -0
  731. data/ext/gyp/test/mac/gyptest-ldflags.py +74 -0
  732. data/ext/gyp/test/mac/gyptest-libraries.py +30 -0
  733. data/ext/gyp/test/mac/gyptest-libtool-zero.py +26 -0
  734. data/ext/gyp/test/mac/gyptest-loadable-module-bundle-product-extension.py +31 -0
  735. data/ext/gyp/test/mac/gyptest-loadable-module.py +54 -0
  736. data/ext/gyp/test/mac/gyptest-lto.py +66 -0
  737. data/ext/gyp/test/mac/gyptest-missing-cfbundlesignature.py +34 -0
  738. data/ext/gyp/test/mac/gyptest-non-strs-flattened-to-env.py +38 -0
  739. data/ext/gyp/test/mac/gyptest-objc-arc.py +27 -0
  740. data/ext/gyp/test/mac/gyptest-objc-gc.py +51 -0
  741. data/ext/gyp/test/mac/gyptest-postbuild-copy-bundle.py +75 -0
  742. data/ext/gyp/test/mac/gyptest-postbuild-defaults.py +34 -0
  743. data/ext/gyp/test/mac/gyptest-postbuild-fail.py +71 -0
  744. data/ext/gyp/test/mac/gyptest-postbuild-multiple-configurations.py +26 -0
  745. data/ext/gyp/test/mac/gyptest-postbuild-static-library.py +28 -0
  746. data/ext/gyp/test/mac/gyptest-postbuild.py +53 -0
  747. data/ext/gyp/test/mac/gyptest-prefixheader.py +20 -0
  748. data/ext/gyp/test/mac/gyptest-rebuild.py +46 -0
  749. data/ext/gyp/test/mac/gyptest-rpath.py +50 -0
  750. data/ext/gyp/test/mac/gyptest-sdkroot.py +56 -0
  751. data/ext/gyp/test/mac/gyptest-sourceless-module.py +77 -0
  752. data/ext/gyp/test/mac/gyptest-strip-default.py +97 -0
  753. data/ext/gyp/test/mac/gyptest-strip.py +66 -0
  754. data/ext/gyp/test/mac/gyptest-swift-library.py +67 -0
  755. data/ext/gyp/test/mac/gyptest-type-envvars.py +26 -0
  756. data/ext/gyp/test/mac/gyptest-unicode-settings.py +20 -0
  757. data/ext/gyp/test/mac/gyptest-xcode-env-order.py +95 -0
  758. data/ext/gyp/test/mac/gyptest-xcode-gcc-clang.py +40 -0
  759. data/ext/gyp/test/mac/gyptest-xcode-gcc.py +60 -0
  760. data/ext/gyp/test/mac/gyptest-xcode-support-actions.py +25 -0
  761. data/ext/gyp/test/mac/gyptest-xctest.py +41 -0
  762. data/ext/gyp/test/mac/gyptest-xcuitest.py +39 -0
  763. data/ext/gyp/test/mac/identical-name/proxy/proxy.cc +2 -0
  764. data/ext/gyp/test/mac/identical-name/proxy/proxy.gyp +9 -0
  765. data/ext/gyp/test/mac/identical-name/proxy/testlib/testlib.cc +2 -0
  766. data/ext/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp +8 -0
  767. data/ext/gyp/test/mac/identical-name/test-should-fail.gyp +10 -0
  768. data/ext/gyp/test/mac/identical-name/test.gyp +11 -0
  769. data/ext/gyp/test/mac/identical-name/test.gypi +7 -0
  770. data/ext/gyp/test/mac/identical-name/testlib/main.cc +3 -0
  771. data/ext/gyp/test/mac/identical-name/testlib/testlib.gyp +14 -0
  772. data/ext/gyp/test/mac/identical-name/testlib/void.cc +2 -0
  773. data/ext/gyp/test/mac/infoplist-process/Info.plist +36 -0
  774. data/ext/gyp/test/mac/infoplist-process/main.c +7 -0
  775. data/ext/gyp/test/mac/infoplist-process/test1.gyp +25 -0
  776. data/ext/gyp/test/mac/infoplist-process/test2.gyp +25 -0
  777. data/ext/gyp/test/mac/infoplist-process/test3.gyp +25 -0
  778. data/ext/gyp/test/mac/installname/Info.plist +28 -0
  779. data/ext/gyp/test/mac/installname/file.c +1 -0
  780. data/ext/gyp/test/mac/installname/main.c +1 -0
  781. data/ext/gyp/test/mac/installname/test.gyp +93 -0
  782. data/ext/gyp/test/mac/kext/GypKext/GypKext-Info.plist +35 -0
  783. data/ext/gyp/test/mac/kext/GypKext/GypKext.c +16 -0
  784. data/ext/gyp/test/mac/kext/kext.gyp +18 -0
  785. data/ext/gyp/test/mac/ldflags/subdirectory/Info.plist +8 -0
  786. data/ext/gyp/test/mac/ldflags/subdirectory/file.c +2 -0
  787. data/ext/gyp/test/mac/ldflags/subdirectory/symbol_list.def +1 -0
  788. data/ext/gyp/test/mac/ldflags/subdirectory/test.gyp +66 -0
  789. data/ext/gyp/test/mac/ldflags-libtool/file.c +1 -0
  790. data/ext/gyp/test/mac/ldflags-libtool/test.gyp +17 -0
  791. data/ext/gyp/test/mac/libraries/subdir/README.txt +1 -0
  792. data/ext/gyp/test/mac/libraries/subdir/hello.cc +10 -0
  793. data/ext/gyp/test/mac/libraries/subdir/mylib.c +7 -0
  794. data/ext/gyp/test/mac/libraries/subdir/test.gyp +65 -0
  795. data/ext/gyp/test/mac/libtool-zero/mylib.c +7 -0
  796. data/ext/gyp/test/mac/libtool-zero/test.gyp +18 -0
  797. data/ext/gyp/test/mac/loadable-module/Info.plist +26 -0
  798. data/ext/gyp/test/mac/loadable-module/module.c +11 -0
  799. data/ext/gyp/test/mac/loadable-module/test.gyp +18 -0
  800. data/ext/gyp/test/mac/loadable-module-bundle-product-extension/src.cc +7 -0
  801. data/ext/gyp/test/mac/loadable-module-bundle-product-extension/test.gyp +24 -0
  802. data/ext/gyp/test/mac/lto/asmfile.S +2 -0
  803. data/ext/gyp/test/mac/lto/ccfile.cc +1 -0
  804. data/ext/gyp/test/mac/lto/cfile.c +1 -0
  805. data/ext/gyp/test/mac/lto/mfile.m +1 -0
  806. data/ext/gyp/test/mac/lto/mmfile.mm +1 -0
  807. data/ext/gyp/test/mac/lto/test.gyp +35 -0
  808. data/ext/gyp/test/mac/missing-cfbundlesignature/Info.plist +10 -0
  809. data/ext/gyp/test/mac/missing-cfbundlesignature/Other-Info.plist +12 -0
  810. data/ext/gyp/test/mac/missing-cfbundlesignature/Third-Info.plist +12 -0
  811. data/ext/gyp/test/mac/missing-cfbundlesignature/file.c +1 -0
  812. data/ext/gyp/test/mac/missing-cfbundlesignature/test.gyp +34 -0
  813. data/ext/gyp/test/mac/non-strs-flattened-to-env/Info.plist +15 -0
  814. data/ext/gyp/test/mac/non-strs-flattened-to-env/main.c +7 -0
  815. data/ext/gyp/test/mac/non-strs-flattened-to-env/test.gyp +27 -0
  816. data/ext/gyp/test/mac/objc-arc/c-file.c +5 -0
  817. data/ext/gyp/test/mac/objc-arc/cc-file.cc +5 -0
  818. data/ext/gyp/test/mac/objc-arc/m-file-arc-weak.m +9 -0
  819. data/ext/gyp/test/mac/objc-arc/m-file-no-arc.m +9 -0
  820. data/ext/gyp/test/mac/objc-arc/m-file.m +9 -0
  821. data/ext/gyp/test/mac/objc-arc/mm-file-arc-weak.mm +9 -0
  822. data/ext/gyp/test/mac/objc-arc/mm-file-no-arc.mm +9 -0
  823. data/ext/gyp/test/mac/objc-arc/mm-file.mm +9 -0
  824. data/ext/gyp/test/mac/objc-arc/test.gyp +53 -0
  825. data/ext/gyp/test/mac/objc-gc/c-file.c +1 -0
  826. data/ext/gyp/test/mac/objc-gc/cc-file.cc +1 -0
  827. data/ext/gyp/test/mac/objc-gc/main.m +6 -0
  828. data/ext/gyp/test/mac/objc-gc/needs-gc-mm.mm +1 -0
  829. data/ext/gyp/test/mac/objc-gc/needs-gc.m +1 -0
  830. data/ext/gyp/test/mac/objc-gc/test.gyp +102 -0
  831. data/ext/gyp/test/mac/postbuild-copy-bundle/Framework-Info.plist +30 -0
  832. data/ext/gyp/test/mac/postbuild-copy-bundle/TestApp-Info.plist +32 -0
  833. data/ext/gyp/test/mac/postbuild-copy-bundle/copied.txt +1 -0
  834. data/ext/gyp/test/mac/postbuild-copy-bundle/empty.c +0 -0
  835. data/ext/gyp/test/mac/postbuild-copy-bundle/main.c +4 -0
  836. data/ext/gyp/test/mac/postbuild-copy-bundle/postbuild-copy-framework.sh +9 -0
  837. data/ext/gyp/test/mac/postbuild-copy-bundle/resource_file.sb +1 -0
  838. data/ext/gyp/test/mac/postbuild-copy-bundle/test.gyp +49 -0
  839. data/ext/gyp/test/mac/postbuild-defaults/Info.plist +13 -0
  840. data/ext/gyp/test/mac/postbuild-defaults/main.c +7 -0
  841. data/ext/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh +15 -0
  842. data/ext/gyp/test/mac/postbuild-defaults/test.gyp +26 -0
  843. data/ext/gyp/test/mac/postbuild-fail/file.c +6 -0
  844. data/ext/gyp/test/mac/postbuild-fail/postbuild-fail.sh +6 -0
  845. data/ext/gyp/test/mac/postbuild-fail/test.gyp +38 -0
  846. data/ext/gyp/test/mac/postbuild-fail/touch-dynamic.sh +7 -0
  847. data/ext/gyp/test/mac/postbuild-fail/touch-static.sh +7 -0
  848. data/ext/gyp/test/mac/postbuild-multiple-configurations/main.c +4 -0
  849. data/ext/gyp/test/mac/postbuild-multiple-configurations/postbuild-touch-file.sh +7 -0
  850. data/ext/gyp/test/mac/postbuild-multiple-configurations/test.gyp +26 -0
  851. data/ext/gyp/test/mac/postbuild-static-library/empty.c +4 -0
  852. data/ext/gyp/test/mac/postbuild-static-library/postbuild-touch-file.sh +7 -0
  853. data/ext/gyp/test/mac/postbuild-static-library/test.gyp +34 -0
  854. data/ext/gyp/test/mac/postbuilds/copy.sh +3 -0
  855. data/ext/gyp/test/mac/postbuilds/file.c +4 -0
  856. data/ext/gyp/test/mac/postbuilds/file_g.c +4 -0
  857. data/ext/gyp/test/mac/postbuilds/file_h.c +4 -0
  858. data/ext/gyp/test/mac/postbuilds/script/shared_library_postbuild.sh +23 -0
  859. data/ext/gyp/test/mac/postbuilds/script/static_library_postbuild.sh +23 -0
  860. data/ext/gyp/test/mac/postbuilds/subdirectory/copied_file.txt +1 -0
  861. data/ext/gyp/test/mac/postbuilds/subdirectory/nested_target.gyp +53 -0
  862. data/ext/gyp/test/mac/postbuilds/test.gyp +93 -0
  863. data/ext/gyp/test/mac/prefixheader/file.c +1 -0
  864. data/ext/gyp/test/mac/prefixheader/file.cc +1 -0
  865. data/ext/gyp/test/mac/prefixheader/file.m +1 -0
  866. data/ext/gyp/test/mac/prefixheader/file.mm +1 -0
  867. data/ext/gyp/test/mac/prefixheader/header.h +1 -0
  868. data/ext/gyp/test/mac/prefixheader/test.gyp +82 -0
  869. data/ext/gyp/test/mac/rebuild/TestApp-Info.plist +32 -0
  870. data/ext/gyp/test/mac/rebuild/delay-touch.sh +6 -0
  871. data/ext/gyp/test/mac/rebuild/empty.c +0 -0
  872. data/ext/gyp/test/mac/rebuild/main.c +1 -0
  873. data/ext/gyp/test/mac/rebuild/test.gyp +56 -0
  874. data/ext/gyp/test/mac/rpath/file.c +1 -0
  875. data/ext/gyp/test/mac/rpath/main.c +1 -0
  876. data/ext/gyp/test/mac/rpath/test.gyp +48 -0
  877. data/ext/gyp/test/mac/sdkroot/file.cc +5 -0
  878. data/ext/gyp/test/mac/sdkroot/test.gyp +35 -0
  879. data/ext/gyp/test/mac/sdkroot/test_shorthand.sh +20 -0
  880. data/ext/gyp/test/mac/sourceless-module/empty.c +1 -0
  881. data/ext/gyp/test/mac/sourceless-module/empty.txt +2 -0
  882. data/ext/gyp/test/mac/sourceless-module/fun.c +1 -0
  883. data/ext/gyp/test/mac/sourceless-module/test.gyp +96 -0
  884. data/ext/gyp/test/mac/strip/file.c +22 -0
  885. data/ext/gyp/test/mac/strip/main.c +25 -0
  886. data/ext/gyp/test/mac/strip/strip.saves +5 -0
  887. data/ext/gyp/test/mac/strip/subdirectory/nested_file.c +1 -0
  888. data/ext/gyp/test/mac/strip/subdirectory/nested_strip.saves +5 -0
  889. data/ext/gyp/test/mac/strip/subdirectory/subdirectory.gyp +38 -0
  890. data/ext/gyp/test/mac/strip/subdirectory/test_reading_save_file_from_postbuild.sh +5 -0
  891. data/ext/gyp/test/mac/strip/test-defaults.gyp +51 -0
  892. data/ext/gyp/test/mac/strip/test.gyp +119 -0
  893. data/ext/gyp/test/mac/swift-library/Info.plist +28 -0
  894. data/ext/gyp/test/mac/swift-library/file.swift +9 -0
  895. data/ext/gyp/test/mac/swift-library/test.gyp +21 -0
  896. data/ext/gyp/test/mac/type_envvars/file.c +6 -0
  897. data/ext/gyp/test/mac/type_envvars/test.gyp +100 -0
  898. data/ext/gyp/test/mac/type_envvars/test_bundle_executable.sh +30 -0
  899. data/ext/gyp/test/mac/type_envvars/test_bundle_loadable_module.sh +35 -0
  900. data/ext/gyp/test/mac/type_envvars/test_bundle_shared_library.sh +38 -0
  901. data/ext/gyp/test/mac/type_envvars/test_check_sdkroot.sh +47 -0
  902. data/ext/gyp/test/mac/type_envvars/test_nonbundle_executable.sh +33 -0
  903. data/ext/gyp/test/mac/type_envvars/test_nonbundle_loadable_module.sh +31 -0
  904. data/ext/gyp/test/mac/type_envvars/test_nonbundle_none.sh +32 -0
  905. data/ext/gyp/test/mac/type_envvars/test_nonbundle_shared_library.sh +31 -0
  906. data/ext/gyp/test/mac/type_envvars/test_nonbundle_static_library.sh +31 -0
  907. data/ext/gyp/test/mac/unicode-settings/file.cc +2 -0
  908. data/ext/gyp/test/mac/unicode-settings/test.gyp +23 -0
  909. data/ext/gyp/test/mac/unicode-settings/test_bundle_display_name.sh +7 -0
  910. data/ext/gyp/test/mac/xcode-env-order/Info.plist +56 -0
  911. data/ext/gyp/test/mac/xcode-env-order/file.ext1 +0 -0
  912. data/ext/gyp/test/mac/xcode-env-order/file.ext2 +0 -0
  913. data/ext/gyp/test/mac/xcode-env-order/file.ext3 +0 -0
  914. data/ext/gyp/test/mac/xcode-env-order/main.c +7 -0
  915. data/ext/gyp/test/mac/xcode-env-order/test.gyp +121 -0
  916. data/ext/gyp/test/mac/xcode-gcc/aliasing.cc +13 -0
  917. data/ext/gyp/test/mac/xcode-gcc/test-clang.gyp +42 -0
  918. data/ext/gyp/test/mac/xcode-gcc/test.gyp +60 -0
  919. data/ext/gyp/test/mac/xcode-gcc/valid_c.c +8 -0
  920. data/ext/gyp/test/mac/xcode-gcc/valid_cc.cc +8 -0
  921. data/ext/gyp/test/mac/xcode-gcc/valid_m.m +8 -0
  922. data/ext/gyp/test/mac/xcode-gcc/valid_mm.mm +8 -0
  923. data/ext/gyp/test/mac/xcode-gcc/warn_about_invalid_offsetof_macro.cc +15 -0
  924. data/ext/gyp/test/mac/xcode-gcc/warn_about_missing_newline.c +8 -0
  925. data/ext/gyp/test/mac/xcode-support-actions/source.c +0 -0
  926. data/ext/gyp/test/mac/xcode-support-actions/test.gyp +26 -0
  927. data/ext/gyp/test/mac/xctest/MyClass.h +8 -0
  928. data/ext/gyp/test/mac/xctest/MyClass.m +8 -0
  929. data/ext/gyp/test/mac/xctest/TestCase.m +16 -0
  930. data/ext/gyp/test/mac/xctest/resource.txt +1 -0
  931. data/ext/gyp/test/mac/xctest/test.gyp +47 -0
  932. data/ext/gyp/test/mac/xctest/test.xcodeproj/xcshareddata/xcschemes/classes.xcscheme +69 -0
  933. data/ext/gyp/test/mac/xcuitest/Info.plist +28 -0
  934. data/ext/gyp/test/mac/xcuitest/MyAppDelegate.h +8 -0
  935. data/ext/gyp/test/mac/xcuitest/MyAppDelegate.m +19 -0
  936. data/ext/gyp/test/mac/xcuitest/TestCase.m +15 -0
  937. data/ext/gyp/test/mac/xcuitest/main.m +15 -0
  938. data/ext/gyp/test/mac/xcuitest/resource.txt +1 -0
  939. data/ext/gyp/test/mac/xcuitest/test.gyp +69 -0
  940. data/ext/gyp/test/make/dependencies.gyp +15 -0
  941. data/ext/gyp/test/make/gyptest-dependencies.py +26 -0
  942. data/ext/gyp/test/make/gyptest-noload.py +57 -0
  943. data/ext/gyp/test/make/main.cc +12 -0
  944. data/ext/gyp/test/make/main.h +0 -0
  945. data/ext/gyp/test/make/noload/all.gyp +18 -0
  946. data/ext/gyp/test/make/noload/lib/shared.c +3 -0
  947. data/ext/gyp/test/make/noload/lib/shared.gyp +16 -0
  948. data/ext/gyp/test/make/noload/lib/shared.h +1 -0
  949. data/ext/gyp/test/make/noload/main.c +9 -0
  950. data/ext/gyp/test/make_global_settings/ar/gyptest-make_global_settings_ar.py +126 -0
  951. data/ext/gyp/test/make_global_settings/ar/make_global_settings_ar.gyp +29 -0
  952. data/ext/gyp/test/make_global_settings/basics/gyptest-make_global_settings.py +51 -0
  953. data/ext/gyp/test/make_global_settings/basics/make_global_settings.gyp +17 -0
  954. data/ext/gyp/test/make_global_settings/env-wrapper/gyptest-wrapper.py +51 -0
  955. data/ext/gyp/test/make_global_settings/env-wrapper/wrapper.gyp +17 -0
  956. data/ext/gyp/test/make_global_settings/full-toolchain/bar.cc +1 -0
  957. data/ext/gyp/test/make_global_settings/full-toolchain/foo.c +1 -0
  958. data/ext/gyp/test/make_global_settings/full-toolchain/gyptest-make_global_settings.py +53 -0
  959. data/ext/gyp/test/make_global_settings/full-toolchain/make_global_settings.gyp +22 -0
  960. data/ext/gyp/test/make_global_settings/full-toolchain/my_nm.py +9 -0
  961. data/ext/gyp/test/make_global_settings/full-toolchain/my_readelf.py +9 -0
  962. data/ext/gyp/test/make_global_settings/ld/gyptest-make_global_settings_ld.py +130 -0
  963. data/ext/gyp/test/make_global_settings/ld/make_global_settings_ld.gyp +29 -0
  964. data/ext/gyp/test/make_global_settings/wrapper/gyptest-wrapper.py +52 -0
  965. data/ext/gyp/test/make_global_settings/wrapper/wrapper.gyp +21 -0
  966. data/ext/gyp/test/many-actions/file0 +0 -0
  967. data/ext/gyp/test/many-actions/file1 +0 -0
  968. data/ext/gyp/test/many-actions/file2 +0 -0
  969. data/ext/gyp/test/many-actions/file3 +0 -0
  970. data/ext/gyp/test/many-actions/file4 +0 -0
  971. data/ext/gyp/test/many-actions/gyptest-many-actions-unsorted.py +43 -0
  972. data/ext/gyp/test/many-actions/gyptest-many-actions.py +29 -0
  973. data/ext/gyp/test/many-actions/many-actions-unsorted.gyp +154 -0
  974. data/ext/gyp/test/many-actions/many-actions.gyp +1817 -0
  975. data/ext/gyp/test/module/gyptest-default.py +28 -0
  976. data/ext/gyp/test/module/src/lib1.c +10 -0
  977. data/ext/gyp/test/module/src/lib2.c +10 -0
  978. data/ext/gyp/test/module/src/module.gyp +53 -0
  979. data/ext/gyp/test/module/src/program.c +111 -0
  980. data/ext/gyp/test/msvs/buildevents/buildevents.gyp +14 -0
  981. data/ext/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py +24 -0
  982. data/ext/gyp/test/msvs/buildevents/gyptest-ninja-warnings.py +29 -0
  983. data/ext/gyp/test/msvs/buildevents/main.cc +5 -0
  984. data/ext/gyp/test/msvs/config_attrs/gyptest-config_attrs.py +41 -0
  985. data/ext/gyp/test/msvs/config_attrs/hello.c +11 -0
  986. data/ext/gyp/test/msvs/config_attrs/hello.gyp +21 -0
  987. data/ext/gyp/test/msvs/express/base/base.gyp +22 -0
  988. data/ext/gyp/test/msvs/express/express.gyp +19 -0
  989. data/ext/gyp/test/msvs/express/gyptest-express.py +29 -0
  990. data/ext/gyp/test/msvs/external_builder/external.gyp +68 -0
  991. data/ext/gyp/test/msvs/external_builder/external_builder.py +9 -0
  992. data/ext/gyp/test/msvs/external_builder/gyptest-all.py +59 -0
  993. data/ext/gyp/test/msvs/external_builder/hello.cpp +10 -0
  994. data/ext/gyp/test/msvs/external_builder/hello.z +6 -0
  995. data/ext/gyp/test/msvs/external_builder/msbuild_action.py +9 -0
  996. data/ext/gyp/test/msvs/external_builder/msbuild_rule.py +11 -0
  997. data/ext/gyp/test/msvs/filters/filters.gyp +47 -0
  998. data/ext/gyp/test/msvs/filters/gyptest-filters-2008.py +68 -0
  999. data/ext/gyp/test/msvs/filters/gyptest-filters-2010.py +57 -0
  1000. data/ext/gyp/test/msvs/list_excluded/gyptest-all.py +51 -0
  1001. data/ext/gyp/test/msvs/list_excluded/hello.cpp +10 -0
  1002. data/ext/gyp/test/msvs/list_excluded/hello_exclude.gyp +19 -0
  1003. data/ext/gyp/test/msvs/list_excluded/hello_mac.cpp +10 -0
  1004. data/ext/gyp/test/msvs/missing_sources/gyptest-missing.py +43 -0
  1005. data/ext/gyp/test/msvs/missing_sources/hello_missing.gyp +15 -0
  1006. data/ext/gyp/test/msvs/multiple_actions_error_handling/action_fail.py +7 -0
  1007. data/ext/gyp/test/msvs/multiple_actions_error_handling/action_succeed.py +7 -0
  1008. data/ext/gyp/test/msvs/multiple_actions_error_handling/actions.gyp +40 -0
  1009. data/ext/gyp/test/msvs/multiple_actions_error_handling/gyptest.py +26 -0
  1010. data/ext/gyp/test/msvs/props/AppName.props +14 -0
  1011. data/ext/gyp/test/msvs/props/AppName.vsprops +11 -0
  1012. data/ext/gyp/test/msvs/props/gyptest-props.py +22 -0
  1013. data/ext/gyp/test/msvs/props/hello.c +11 -0
  1014. data/ext/gyp/test/msvs/props/hello.gyp +22 -0
  1015. data/ext/gyp/test/msvs/rules_stdout_stderr/dummy.bar +5 -0
  1016. data/ext/gyp/test/msvs/rules_stdout_stderr/dummy.foo +5 -0
  1017. data/ext/gyp/test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py +29 -0
  1018. data/ext/gyp/test/msvs/rules_stdout_stderr/rule_stderr.py +8 -0
  1019. data/ext/gyp/test/msvs/rules_stdout_stderr/rule_stdout.py +7 -0
  1020. data/ext/gyp/test/msvs/rules_stdout_stderr/rules-stdout-stderr.gyp +52 -0
  1021. data/ext/gyp/test/msvs/shared_output/common.gypi +17 -0
  1022. data/ext/gyp/test/msvs/shared_output/gyptest-shared_output.py +41 -0
  1023. data/ext/gyp/test/msvs/shared_output/hello.c +12 -0
  1024. data/ext/gyp/test/msvs/shared_output/hello.gyp +21 -0
  1025. data/ext/gyp/test/msvs/shared_output/there/there.c +12 -0
  1026. data/ext/gyp/test/msvs/shared_output/there/there.gyp +16 -0
  1027. data/ext/gyp/test/msvs/uldi2010/gyptest-all.py +20 -0
  1028. data/ext/gyp/test/msvs/uldi2010/hello.c +13 -0
  1029. data/ext/gyp/test/msvs/uldi2010/hello.gyp +26 -0
  1030. data/ext/gyp/test/msvs/uldi2010/hello2.c +10 -0
  1031. data/ext/gyp/test/multiple-targets/gyptest-all.py +30 -0
  1032. data/ext/gyp/test/multiple-targets/gyptest-default.py +30 -0
  1033. data/ext/gyp/test/multiple-targets/src/common.c +7 -0
  1034. data/ext/gyp/test/multiple-targets/src/multiple.gyp +24 -0
  1035. data/ext/gyp/test/multiple-targets/src/prog1.c +10 -0
  1036. data/ext/gyp/test/multiple-targets/src/prog2.c +10 -0
  1037. data/ext/gyp/test/ninja/action-rule-hash/gyptest-action-rule-hash.py +32 -0
  1038. data/ext/gyp/test/ninja/action-rule-hash/subdir/action-rule-hash.gyp +29 -0
  1039. data/ext/gyp/test/ninja/action-rule-hash/subdir/emit.py +13 -0
  1040. data/ext/gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py +64 -0
  1041. data/ext/gyp/test/ninja/action_dependencies/src/a.c +10 -0
  1042. data/ext/gyp/test/ninja/action_dependencies/src/a.h +13 -0
  1043. data/ext/gyp/test/ninja/action_dependencies/src/action_dependencies.gyp +88 -0
  1044. data/ext/gyp/test/ninja/action_dependencies/src/b.c +18 -0
  1045. data/ext/gyp/test/ninja/action_dependencies/src/b.h +13 -0
  1046. data/ext/gyp/test/ninja/action_dependencies/src/c.c +10 -0
  1047. data/ext/gyp/test/ninja/action_dependencies/src/c.h +13 -0
  1048. data/ext/gyp/test/ninja/action_dependencies/src/emit.py +11 -0
  1049. data/ext/gyp/test/ninja/chained-dependency/chained-dependency.gyp +53 -0
  1050. data/ext/gyp/test/ninja/chained-dependency/chained.c +5 -0
  1051. data/ext/gyp/test/ninja/chained-dependency/gyptest-chained-dependency.py +30 -0
  1052. data/ext/gyp/test/ninja/empty-and-non-empty-duplicate-name/gyptest-empty-and-non-empty-duplicate-name.py +23 -0
  1053. data/ext/gyp/test/ninja/empty-and-non-empty-duplicate-name/subdir/included.gyp +19 -0
  1054. data/ext/gyp/test/ninja/empty-and-non-empty-duplicate-name/test.gyp +19 -0
  1055. data/ext/gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py +46 -0
  1056. data/ext/gyp/test/ninja/normalize-paths-win/hello.cc +7 -0
  1057. data/ext/gyp/test/ninja/normalize-paths-win/normalize-paths.gyp +68 -0
  1058. data/ext/gyp/test/ninja/s-needs-no-depfiles/empty.s +1 -0
  1059. data/ext/gyp/test/ninja/s-needs-no-depfiles/gyptest-s-needs-no-depfiles.py +42 -0
  1060. data/ext/gyp/test/ninja/s-needs-no-depfiles/s-needs-no-depfiles.gyp +13 -0
  1061. data/ext/gyp/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py +48 -0
  1062. data/ext/gyp/test/ninja/solibs_avoid_relinking/main.cc +5 -0
  1063. data/ext/gyp/test/ninja/solibs_avoid_relinking/solib.cc +8 -0
  1064. data/ext/gyp/test/ninja/solibs_avoid_relinking/solibs_avoid_relinking.gyp +38 -0
  1065. data/ext/gyp/test/ninja/use-console/foo.bar +5 -0
  1066. data/ext/gyp/test/ninja/use-console/gyptest-use-console.py +29 -0
  1067. data/ext/gyp/test/ninja/use-console/use-console.gyp +60 -0
  1068. data/ext/gyp/test/ninja/use-custom-environment-files/gyptest-use-custom-environment-files.py +28 -0
  1069. data/ext/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.cc +7 -0
  1070. data/ext/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.gyp +15 -0
  1071. data/ext/gyp/test/no-cpp/gyptest-no-cpp.py +53 -0
  1072. data/ext/gyp/test/no-cpp/src/call-f-main.c +2 -0
  1073. data/ext/gyp/test/no-cpp/src/empty-main.c +1 -0
  1074. data/ext/gyp/test/no-cpp/src/f.cc +3 -0
  1075. data/ext/gyp/test/no-cpp/src/test.gyp +25 -0
  1076. data/ext/gyp/test/no-output/gyptest-no-output.py +21 -0
  1077. data/ext/gyp/test/no-output/src/nooutput.gyp +17 -0
  1078. data/ext/gyp/test/product/gyptest-product.py +43 -0
  1079. data/ext/gyp/test/product/hello.c +15 -0
  1080. data/ext/gyp/test/product/product.gyp +128 -0
  1081. data/ext/gyp/test/prune_targets/gyptest-prune-targets.py +66 -0
  1082. data/ext/gyp/test/prune_targets/lib1.cc +6 -0
  1083. data/ext/gyp/test/prune_targets/lib2.cc +6 -0
  1084. data/ext/gyp/test/prune_targets/lib3.cc +6 -0
  1085. data/ext/gyp/test/prune_targets/lib_indirect.cc +6 -0
  1086. data/ext/gyp/test/prune_targets/program.cc +7 -0
  1087. data/ext/gyp/test/prune_targets/test1.gyp +26 -0
  1088. data/ext/gyp/test/prune_targets/test2.gyp +30 -0
  1089. data/ext/gyp/test/relative/foo/a/a.cc +9 -0
  1090. data/ext/gyp/test/relative/foo/a/a.gyp +13 -0
  1091. data/ext/gyp/test/relative/foo/a/c/c.cc +9 -0
  1092. data/ext/gyp/test/relative/foo/a/c/c.gyp +12 -0
  1093. data/ext/gyp/test/relative/foo/b/b.cc +9 -0
  1094. data/ext/gyp/test/relative/foo/b/b.gyp +9 -0
  1095. data/ext/gyp/test/relative/gyptest-default.py +25 -0
  1096. data/ext/gyp/test/rename/filecase/file.c +1 -0
  1097. data/ext/gyp/test/rename/filecase/test-casesensitive.gyp +15 -0
  1098. data/ext/gyp/test/rename/filecase/test.gyp +14 -0
  1099. data/ext/gyp/test/rename/gyptest-filecase.py +35 -0
  1100. data/ext/gyp/test/restat/gyptest-restat.py +31 -0
  1101. data/ext/gyp/test/restat/src/create_intermediate.py +17 -0
  1102. data/ext/gyp/test/restat/src/restat.gyp +50 -0
  1103. data/ext/gyp/test/restat/src/touch.py +16 -0
  1104. data/ext/gyp/test/rules/gyptest-all.py +84 -0
  1105. data/ext/gyp/test/rules/gyptest-default.py +70 -0
  1106. data/ext/gyp/test/rules/gyptest-input-root.py +26 -0
  1107. data/ext/gyp/test/rules/gyptest-special-variables.py +18 -0
  1108. data/ext/gyp/test/rules/src/actions.gyp +23 -0
  1109. data/ext/gyp/test/rules/src/an_asm.S +6 -0
  1110. data/ext/gyp/test/rules/src/as.bat +7 -0
  1111. data/ext/gyp/test/rules/src/copy-file.py +11 -0
  1112. data/ext/gyp/test/rules/src/external/external.gyp +66 -0
  1113. data/ext/gyp/test/rules/src/external/file1.in +1 -0
  1114. data/ext/gyp/test/rules/src/external/file2.in +1 -0
  1115. data/ext/gyp/test/rules/src/input-root.gyp +24 -0
  1116. data/ext/gyp/test/rules/src/noaction/file1.in +1 -0
  1117. data/ext/gyp/test/rules/src/noaction/no_action_with_rules_fails.gyp +37 -0
  1118. data/ext/gyp/test/rules/src/rule.py +17 -0
  1119. data/ext/gyp/test/rules/src/somefile.ext +0 -0
  1120. data/ext/gyp/test/rules/src/special-variables.gyp +34 -0
  1121. data/ext/gyp/test/rules/src/subdir1/executable.gyp +37 -0
  1122. data/ext/gyp/test/rules/src/subdir1/function1.in +6 -0
  1123. data/ext/gyp/test/rules/src/subdir1/function2.in +6 -0
  1124. data/ext/gyp/test/rules/src/subdir1/program.c +12 -0
  1125. data/ext/gyp/test/rules/src/subdir2/both_rule_and_action_input.gyp +50 -0
  1126. data/ext/gyp/test/rules/src/subdir2/file1.in +1 -0
  1127. data/ext/gyp/test/rules/src/subdir2/file2.in +1 -0
  1128. data/ext/gyp/test/rules/src/subdir2/never_used.gyp +31 -0
  1129. data/ext/gyp/test/rules/src/subdir2/no_action.gyp +38 -0
  1130. data/ext/gyp/test/rules/src/subdir2/no_inputs.gyp +32 -0
  1131. data/ext/gyp/test/rules/src/subdir2/none.gyp +33 -0
  1132. data/ext/gyp/test/rules/src/subdir2/program.c +12 -0
  1133. data/ext/gyp/test/rules/src/subdir3/executable2.gyp +37 -0
  1134. data/ext/gyp/test/rules/src/subdir3/function3.in +6 -0
  1135. data/ext/gyp/test/rules/src/subdir3/program.c +10 -0
  1136. data/ext/gyp/test/rules/src/subdir4/asm-function.assem +10 -0
  1137. data/ext/gyp/test/rules/src/subdir4/build-asm.gyp +49 -0
  1138. data/ext/gyp/test/rules/src/subdir4/program.c +19 -0
  1139. data/ext/gyp/test/rules-dirname/gyptest-dirname.py +57 -0
  1140. data/ext/gyp/test/rules-dirname/src/actions.gyp +15 -0
  1141. data/ext/gyp/test/rules-dirname/src/copy-file.py +11 -0
  1142. data/ext/gyp/test/rules-dirname/src/subdir/a/b/c.gencc +8 -0
  1143. data/ext/gyp/test/rules-dirname/src/subdir/a/b/c.printvars +1 -0
  1144. data/ext/gyp/test/rules-dirname/src/subdir/foo/bar/baz.gencc +8 -0
  1145. data/ext/gyp/test/rules-dirname/src/subdir/foo/bar/baz.printvars +1 -0
  1146. data/ext/gyp/test/rules-dirname/src/subdir/input-rule-dirname.gyp +140 -0
  1147. data/ext/gyp/test/rules-dirname/src/subdir/main.cc +14 -0
  1148. data/ext/gyp/test/rules-dirname/src/subdir/nodir.gencc +8 -0
  1149. data/ext/gyp/test/rules-dirname/src/subdir/printvars.py +14 -0
  1150. data/ext/gyp/test/rules-rebuild/gyptest-all.py +70 -0
  1151. data/ext/gyp/test/rules-rebuild/gyptest-default.py +91 -0
  1152. data/ext/gyp/test/rules-rebuild/src/main.c +12 -0
  1153. data/ext/gyp/test/rules-rebuild/src/make-sources.py +19 -0
  1154. data/ext/gyp/test/rules-rebuild/src/prog1.in +7 -0
  1155. data/ext/gyp/test/rules-rebuild/src/prog2.in +7 -0
  1156. data/ext/gyp/test/rules-rebuild/src/same_target.gyp +31 -0
  1157. data/ext/gyp/test/rules-use-built-dependencies/gyptest-use-built-dependencies.py +23 -0
  1158. data/ext/gyp/test/rules-use-built-dependencies/src/main.cc +17 -0
  1159. data/ext/gyp/test/rules-use-built-dependencies/src/use-built-dependencies-rule.gyp +42 -0
  1160. data/ext/gyp/test/rules-variables/gyptest-rules-variables.py +35 -0
  1161. data/ext/gyp/test/rules-variables/src/input_ext.c +9 -0
  1162. data/ext/gyp/test/rules-variables/src/input_name/test.c +9 -0
  1163. data/ext/gyp/test/rules-variables/src/input_path/subdir/test.c +9 -0
  1164. data/ext/gyp/test/rules-variables/src/subdir/input_dirname.c +9 -0
  1165. data/ext/gyp/test/rules-variables/src/subdir/test.c +18 -0
  1166. data/ext/gyp/test/rules-variables/src/test.input_root.c +9 -0
  1167. data/ext/gyp/test/rules-variables/src/variables.gyp +40 -0
  1168. data/ext/gyp/test/same-gyp-name/gyptest-all.py +38 -0
  1169. data/ext/gyp/test/same-gyp-name/gyptest-default.py +38 -0
  1170. data/ext/gyp/test/same-gyp-name/gyptest-library.py +20 -0
  1171. data/ext/gyp/test/same-gyp-name/library/one/sub.gyp +11 -0
  1172. data/ext/gyp/test/same-gyp-name/library/test.gyp +15 -0
  1173. data/ext/gyp/test/same-gyp-name/library/two/sub.gyp +11 -0
  1174. data/ext/gyp/test/same-gyp-name/src/all.gyp +16 -0
  1175. data/ext/gyp/test/same-gyp-name/src/subdir1/executable.gyp +15 -0
  1176. data/ext/gyp/test/same-gyp-name/src/subdir1/main1.cc +6 -0
  1177. data/ext/gyp/test/same-gyp-name/src/subdir2/executable.gyp +15 -0
  1178. data/ext/gyp/test/same-gyp-name/src/subdir2/main2.cc +6 -0
  1179. data/ext/gyp/test/same-rule-output-file-name/gyptest-all.py +23 -0
  1180. data/ext/gyp/test/same-rule-output-file-name/src/subdir1/subdir1.gyp +30 -0
  1181. data/ext/gyp/test/same-rule-output-file-name/src/subdir2/subdir2.gyp +30 -0
  1182. data/ext/gyp/test/same-rule-output-file-name/src/subdirs.gyp +16 -0
  1183. data/ext/gyp/test/same-rule-output-file-name/src/touch.py +11 -0
  1184. data/ext/gyp/test/same-source-file-name/gyptest-all.py +34 -0
  1185. data/ext/gyp/test/same-source-file-name/gyptest-default.py +34 -0
  1186. data/ext/gyp/test/same-source-file-name/gyptest-pass-executable.py +33 -0
  1187. data/ext/gyp/test/same-source-file-name/gyptest-pass-shared.py +18 -0
  1188. data/ext/gyp/test/same-source-file-name/gyptest-static.py +34 -0
  1189. data/ext/gyp/test/same-source-file-name/src/all.gyp +30 -0
  1190. data/ext/gyp/test/same-source-file-name/src/double-executable.gyp +21 -0
  1191. data/ext/gyp/test/same-source-file-name/src/double-shared.gyp +27 -0
  1192. data/ext/gyp/test/same-source-file-name/src/double-static.gyp +22 -0
  1193. data/ext/gyp/test/same-source-file-name/src/func.c +6 -0
  1194. data/ext/gyp/test/same-source-file-name/src/prog1.c +16 -0
  1195. data/ext/gyp/test/same-source-file-name/src/prog2.c +16 -0
  1196. data/ext/gyp/test/same-source-file-name/src/prog3.c +18 -0
  1197. data/ext/gyp/test/same-source-file-name/src/subdir1/func.c +6 -0
  1198. data/ext/gyp/test/same-source-file-name/src/subdir2/func.c +6 -0
  1199. data/ext/gyp/test/same-target-name/gyptest-same-target-name.py +18 -0
  1200. data/ext/gyp/test/same-target-name/src/all.gyp +16 -0
  1201. data/ext/gyp/test/same-target-name/src/executable1.gyp +15 -0
  1202. data/ext/gyp/test/same-target-name/src/executable2.gyp +15 -0
  1203. data/ext/gyp/test/same-target-name-different-directory/gyptest-all.py +41 -0
  1204. data/ext/gyp/test/same-target-name-different-directory/src/subdir1/subdir1.gyp +66 -0
  1205. data/ext/gyp/test/same-target-name-different-directory/src/subdir2/subdir2.gyp +66 -0
  1206. data/ext/gyp/test/same-target-name-different-directory/src/subdirs.gyp +16 -0
  1207. data/ext/gyp/test/same-target-name-different-directory/src/touch.py +11 -0
  1208. data/ext/gyp/test/sanitize-rule-names/blah.S +0 -0
  1209. data/ext/gyp/test/sanitize-rule-names/gyptest-sanitize-rule-names.py +17 -0
  1210. data/ext/gyp/test/sanitize-rule-names/hello.cc +7 -0
  1211. data/ext/gyp/test/sanitize-rule-names/sanitize-rule-names.gyp +27 -0
  1212. data/ext/gyp/test/sanitize-rule-names/script.py +10 -0
  1213. data/ext/gyp/test/self-dependency/common.gypi +13 -0
  1214. data/ext/gyp/test/self-dependency/dep.gyp +23 -0
  1215. data/ext/gyp/test/self-dependency/gyptest-self-dependency.py +19 -0
  1216. data/ext/gyp/test/self-dependency/self_dependency.gyp +15 -0
  1217. data/ext/gyp/test/sibling/gyptest-all.py +42 -0
  1218. data/ext/gyp/test/sibling/gyptest-relocate.py +44 -0
  1219. data/ext/gyp/test/sibling/src/build/all.gyp +16 -0
  1220. data/ext/gyp/test/sibling/src/prog1/prog1.c +7 -0
  1221. data/ext/gyp/test/sibling/src/prog1/prog1.gyp +15 -0
  1222. data/ext/gyp/test/sibling/src/prog2/prog2.c +7 -0
  1223. data/ext/gyp/test/sibling/src/prog2/prog2.gyp +15 -0
  1224. data/ext/gyp/test/small/gyptest-small.py +56 -0
  1225. data/ext/gyp/test/standalone/gyptest-standalone.py +35 -0
  1226. data/ext/gyp/test/standalone/standalone.gyp +12 -0
  1227. data/ext/gyp/test/standalone-static-library/gyptest-standalone-static-library.py +50 -0
  1228. data/ext/gyp/test/standalone-static-library/invalid.gyp +16 -0
  1229. data/ext/gyp/test/standalone-static-library/mylib.c +7 -0
  1230. data/ext/gyp/test/standalone-static-library/mylib.gyp +26 -0
  1231. data/ext/gyp/test/standalone-static-library/prog.c +7 -0
  1232. data/ext/gyp/test/subdirectory/gyptest-SYMROOT-all.py +36 -0
  1233. data/ext/gyp/test/subdirectory/gyptest-SYMROOT-default.py +37 -0
  1234. data/ext/gyp/test/subdirectory/gyptest-subdir-all.py +34 -0
  1235. data/ext/gyp/test/subdirectory/gyptest-subdir-default.py +34 -0
  1236. data/ext/gyp/test/subdirectory/gyptest-subdir2-deep.py +25 -0
  1237. data/ext/gyp/test/subdirectory/gyptest-top-all.py +43 -0
  1238. data/ext/gyp/test/subdirectory/gyptest-top-default.py +43 -0
  1239. data/ext/gyp/test/subdirectory/src/prog1.c +7 -0
  1240. data/ext/gyp/test/subdirectory/src/prog1.gyp +21 -0
  1241. data/ext/gyp/test/subdirectory/src/subdir/prog2.c +7 -0
  1242. data/ext/gyp/test/subdirectory/src/subdir/prog2.gyp +18 -0
  1243. data/ext/gyp/test/subdirectory/src/subdir/subdir2/prog3.c +7 -0
  1244. data/ext/gyp/test/subdirectory/src/subdir/subdir2/prog3.gyp +18 -0
  1245. data/ext/gyp/test/subdirectory/src/symroot.gypi +16 -0
  1246. data/ext/gyp/test/symlinks/gyptest-symlinks.py +66 -0
  1247. data/ext/gyp/test/symlinks/hello.c +12 -0
  1248. data/ext/gyp/test/symlinks/hello.gyp +15 -0
  1249. data/ext/gyp/test/target/gyptest-target.py +37 -0
  1250. data/ext/gyp/test/target/hello.c +7 -0
  1251. data/ext/gyp/test/target/target.gyp +24 -0
  1252. data/ext/gyp/test/toolsets/gyptest-toolsets.py +31 -0
  1253. data/ext/gyp/test/toolsets/main.cc +13 -0
  1254. data/ext/gyp/test/toolsets/toolsets.cc +11 -0
  1255. data/ext/gyp/test/toolsets/toolsets.gyp +62 -0
  1256. data/ext/gyp/test/toolsets/toolsets_shared.cc +11 -0
  1257. data/ext/gyp/test/toplevel-dir/gyptest-toplevel-dir.py +31 -0
  1258. data/ext/gyp/test/toplevel-dir/src/sub1/main.gyp +18 -0
  1259. data/ext/gyp/test/toplevel-dir/src/sub1/prog1.c +7 -0
  1260. data/ext/gyp/test/toplevel-dir/src/sub2/prog2.c +7 -0
  1261. data/ext/gyp/test/toplevel-dir/src/sub2/prog2.gyp +15 -0
  1262. data/ext/gyp/test/variables/commands/commands-repeated.gyp +128 -0
  1263. data/ext/gyp/test/variables/commands/commands-repeated.gyp.stdout +136 -0
  1264. data/ext/gyp/test/variables/commands/commands-repeated.gypd.golden +77 -0
  1265. data/ext/gyp/test/variables/commands/commands.gyp +91 -0
  1266. data/ext/gyp/test/variables/commands/commands.gyp.ignore-env.stdout +96 -0
  1267. data/ext/gyp/test/variables/commands/commands.gyp.stdout +96 -0
  1268. data/ext/gyp/test/variables/commands/commands.gypd.golden +66 -0
  1269. data/ext/gyp/test/variables/commands/commands.gypi +23 -0
  1270. data/ext/gyp/test/variables/commands/gyptest-commands-ignore-env.py +47 -0
  1271. data/ext/gyp/test/variables/commands/gyptest-commands-repeated-multidir.py +23 -0
  1272. data/ext/gyp/test/variables/commands/gyptest-commands-repeated.py +40 -0
  1273. data/ext/gyp/test/variables/commands/gyptest-commands.py +40 -0
  1274. data/ext/gyp/test/variables/commands/repeated_multidir/dir_1/test_1.gyp +13 -0
  1275. data/ext/gyp/test/variables/commands/repeated_multidir/dir_2/test_2.gyp +13 -0
  1276. data/ext/gyp/test/variables/commands/repeated_multidir/main.gyp +16 -0
  1277. data/ext/gyp/test/variables/commands/repeated_multidir/print_cwd_basename.py +11 -0
  1278. data/ext/gyp/test/variables/commands/repeated_multidir/repeated_command_common.gypi +25 -0
  1279. data/ext/gyp/test/variables/commands/test.py +7 -0
  1280. data/ext/gyp/test/variables/commands/update_golden +11 -0
  1281. data/ext/gyp/test/variables/empty/empty.gyp +13 -0
  1282. data/ext/gyp/test/variables/empty/empty.gypi +9 -0
  1283. data/ext/gyp/test/variables/empty/gyptest-empty.py +19 -0
  1284. data/ext/gyp/test/variables/filelist/filelist.gyp.stdout +26 -0
  1285. data/ext/gyp/test/variables/filelist/filelist.gypd.golden +43 -0
  1286. data/ext/gyp/test/variables/filelist/gyptest-filelist-golden.py +53 -0
  1287. data/ext/gyp/test/variables/filelist/gyptest-filelist.py +29 -0
  1288. data/ext/gyp/test/variables/filelist/src/dummy.py +5 -0
  1289. data/ext/gyp/test/variables/filelist/src/filelist.gyp +93 -0
  1290. data/ext/gyp/test/variables/filelist/src/filelist2.gyp +40 -0
  1291. data/ext/gyp/test/variables/filelist/update_golden +8 -0
  1292. data/ext/gyp/test/variables/latelate/gyptest-latelate.py +25 -0
  1293. data/ext/gyp/test/variables/latelate/src/latelate.gyp +34 -0
  1294. data/ext/gyp/test/variables/latelate/src/program.cc +13 -0
  1295. data/ext/gyp/test/variables/variable-in-path/C1/hello.cc +7 -0
  1296. data/ext/gyp/test/variables/variable-in-path/gyptest-variable-in-path.py +23 -0
  1297. data/ext/gyp/test/variables/variable-in-path/variable-in-path.gyp +31 -0
  1298. data/ext/gyp/test/win/asm-files/asm-files.gyp +17 -0
  1299. data/ext/gyp/test/win/asm-files/b.s +0 -0
  1300. data/ext/gyp/test/win/asm-files/c.S +0 -0
  1301. data/ext/gyp/test/win/asm-files/hello.cc +7 -0
  1302. data/ext/gyp/test/win/batch-file-action/batch-file-action.gyp +21 -0
  1303. data/ext/gyp/test/win/batch-file-action/infile +1 -0
  1304. data/ext/gyp/test/win/batch-file-action/somecmd.bat +5 -0
  1305. data/ext/gyp/test/win/command-quote/a.S +0 -0
  1306. data/ext/gyp/test/win/command-quote/bat with spaces.bat +7 -0
  1307. data/ext/gyp/test/win/command-quote/command-quote.gyp +79 -0
  1308. data/ext/gyp/test/win/command-quote/go.bat +7 -0
  1309. data/ext/gyp/test/win/command-quote/subdir/and/another/in-subdir.gyp +27 -0
  1310. data/ext/gyp/test/win/compiler-flags/additional-include-dirs.cc +10 -0
  1311. data/ext/gyp/test/win/compiler-flags/additional-include-dirs.gyp +20 -0
  1312. data/ext/gyp/test/win/compiler-flags/additional-options.cc +10 -0
  1313. data/ext/gyp/test/win/compiler-flags/additional-options.gyp +31 -0
  1314. data/ext/gyp/test/win/compiler-flags/analysis.gyp +40 -0
  1315. data/ext/gyp/test/win/compiler-flags/buffer-security-check.gyp +51 -0
  1316. data/ext/gyp/test/win/compiler-flags/buffer-security.cc +12 -0
  1317. data/ext/gyp/test/win/compiler-flags/calling-convention-cdecl.def +6 -0
  1318. data/ext/gyp/test/win/compiler-flags/calling-convention-fastcall.def +6 -0
  1319. data/ext/gyp/test/win/compiler-flags/calling-convention-stdcall.def +6 -0
  1320. data/ext/gyp/test/win/compiler-flags/calling-convention-vectorcall.def +6 -0
  1321. data/ext/gyp/test/win/compiler-flags/calling-convention.cc +6 -0
  1322. data/ext/gyp/test/win/compiler-flags/calling-convention.gyp +66 -0
  1323. data/ext/gyp/test/win/compiler-flags/character-set-mbcs.cc +11 -0
  1324. data/ext/gyp/test/win/compiler-flags/character-set-unicode.cc +15 -0
  1325. data/ext/gyp/test/win/compiler-flags/character-set.gyp +35 -0
  1326. data/ext/gyp/test/win/compiler-flags/compile-as-managed.cc +9 -0
  1327. data/ext/gyp/test/win/compiler-flags/compile-as-managed.gyp +29 -0
  1328. data/ext/gyp/test/win/compiler-flags/compile-as-winrt.cc +12 -0
  1329. data/ext/gyp/test/win/compiler-flags/compile-as-winrt.gyp +20 -0
  1330. data/ext/gyp/test/win/compiler-flags/debug-format.gyp +48 -0
  1331. data/ext/gyp/test/win/compiler-flags/default-char-is-unsigned.cc +15 -0
  1332. data/ext/gyp/test/win/compiler-flags/default-char-is-unsigned.gyp +20 -0
  1333. data/ext/gyp/test/win/compiler-flags/disable-specific-warnings.cc +9 -0
  1334. data/ext/gyp/test/win/compiler-flags/disable-specific-warnings.gyp +29 -0
  1335. data/ext/gyp/test/win/compiler-flags/enable-enhanced-instruction-set.cc +28 -0
  1336. data/ext/gyp/test/win/compiler-flags/enable-enhanced-instruction-set.gyp +68 -0
  1337. data/ext/gyp/test/win/compiler-flags/exception-handling-on.cc +24 -0
  1338. data/ext/gyp/test/win/compiler-flags/exception-handling.gyp +46 -0
  1339. data/ext/gyp/test/win/compiler-flags/floating-point-model-fast.cc +19 -0
  1340. data/ext/gyp/test/win/compiler-flags/floating-point-model-precise.cc +19 -0
  1341. data/ext/gyp/test/win/compiler-flags/floating-point-model-strict.cc +19 -0
  1342. data/ext/gyp/test/win/compiler-flags/floating-point-model.gyp +43 -0
  1343. data/ext/gyp/test/win/compiler-flags/force-include-files-with-precompiled.cc +10 -0
  1344. data/ext/gyp/test/win/compiler-flags/force-include-files.cc +8 -0
  1345. data/ext/gyp/test/win/compiler-flags/force-include-files.gyp +36 -0
  1346. data/ext/gyp/test/win/compiler-flags/function-level-linking.cc +11 -0
  1347. data/ext/gyp/test/win/compiler-flags/function-level-linking.gyp +28 -0
  1348. data/ext/gyp/test/win/compiler-flags/hello.cc +7 -0
  1349. data/ext/gyp/test/win/compiler-flags/optimizations.gyp +207 -0
  1350. data/ext/gyp/test/win/compiler-flags/pdbname-override.gyp +26 -0
  1351. data/ext/gyp/test/win/compiler-flags/pdbname.cc +7 -0
  1352. data/ext/gyp/test/win/compiler-flags/pdbname.gyp +24 -0
  1353. data/ext/gyp/test/win/compiler-flags/precomp.cc +6 -0
  1354. data/ext/gyp/test/win/compiler-flags/rtti-on.cc +11 -0
  1355. data/ext/gyp/test/win/compiler-flags/rtti.gyp +37 -0
  1356. data/ext/gyp/test/win/compiler-flags/runtime-checks.cc +11 -0
  1357. data/ext/gyp/test/win/compiler-flags/runtime-checks.gyp +29 -0
  1358. data/ext/gyp/test/win/compiler-flags/runtime-library-md.cc +19 -0
  1359. data/ext/gyp/test/win/compiler-flags/runtime-library-mdd.cc +19 -0
  1360. data/ext/gyp/test/win/compiler-flags/runtime-library-mt.cc +19 -0
  1361. data/ext/gyp/test/win/compiler-flags/runtime-library-mtd.cc +19 -0
  1362. data/ext/gyp/test/win/compiler-flags/runtime-library.gyp +48 -0
  1363. data/ext/gyp/test/win/compiler-flags/subdir/header.h +0 -0
  1364. data/ext/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type.gyp +33 -0
  1365. data/ext/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type1.cc +11 -0
  1366. data/ext/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type2.cc +11 -0
  1367. data/ext/gyp/test/win/compiler-flags/uninit.cc +13 -0
  1368. data/ext/gyp/test/win/compiler-flags/warning-as-error.cc +9 -0
  1369. data/ext/gyp/test/win/compiler-flags/warning-as-error.gyp +37 -0
  1370. data/ext/gyp/test/win/compiler-flags/warning-level.gyp +115 -0
  1371. data/ext/gyp/test/win/compiler-flags/warning-level1.cc +8 -0
  1372. data/ext/gyp/test/win/compiler-flags/warning-level2.cc +14 -0
  1373. data/ext/gyp/test/win/compiler-flags/warning-level3.cc +11 -0
  1374. data/ext/gyp/test/win/compiler-flags/warning-level4.cc +10 -0
  1375. data/ext/gyp/test/win/enable-winrt/dllmain.cc +30 -0
  1376. data/ext/gyp/test/win/enable-winrt/enable-winrt.gyp +39 -0
  1377. data/ext/gyp/test/win/generator-output-different-drive/gyptest-generator-output-different-drive.py +44 -0
  1378. data/ext/gyp/test/win/generator-output-different-drive/prog.c +10 -0
  1379. data/ext/gyp/test/win/generator-output-different-drive/prog.gyp +15 -0
  1380. data/ext/gyp/test/win/gyptest-asm-files.py +26 -0
  1381. data/ext/gyp/test/win/gyptest-cl-additional-include-dirs.py +22 -0
  1382. data/ext/gyp/test/win/gyptest-cl-additional-options.py +28 -0
  1383. data/ext/gyp/test/win/gyptest-cl-analysis.py +30 -0
  1384. data/ext/gyp/test/win/gyptest-cl-buffer-security-check.py +53 -0
  1385. data/ext/gyp/test/win/gyptest-cl-calling-convention.py +22 -0
  1386. data/ext/gyp/test/win/gyptest-cl-character-set.py +22 -0
  1387. data/ext/gyp/test/win/gyptest-cl-compile-as-managed.py +24 -0
  1388. data/ext/gyp/test/win/gyptest-cl-compile-as-winrt.py +20 -0
  1389. data/ext/gyp/test/win/gyptest-cl-debug-format.py +43 -0
  1390. data/ext/gyp/test/win/gyptest-cl-default-char-is-unsigned.py +22 -0
  1391. data/ext/gyp/test/win/gyptest-cl-disable-specific-warnings.py +32 -0
  1392. data/ext/gyp/test/win/gyptest-cl-enable-enhanced-instruction-set.py +49 -0
  1393. data/ext/gyp/test/win/gyptest-cl-exception-handling.py +33 -0
  1394. data/ext/gyp/test/win/gyptest-cl-floating-point-model.py +22 -0
  1395. data/ext/gyp/test/win/gyptest-cl-force-include-files.py +22 -0
  1396. data/ext/gyp/test/win/gyptest-cl-function-level-linking.py +54 -0
  1397. data/ext/gyp/test/win/gyptest-cl-optimizations.py +105 -0
  1398. data/ext/gyp/test/win/gyptest-cl-pdbname-override.py +27 -0
  1399. data/ext/gyp/test/win/gyptest-cl-pdbname.py +30 -0
  1400. data/ext/gyp/test/win/gyptest-cl-rtti.py +30 -0
  1401. data/ext/gyp/test/win/gyptest-cl-runtime-checks.py +30 -0
  1402. data/ext/gyp/test/win/gyptest-cl-runtime-library.py +22 -0
  1403. data/ext/gyp/test/win/gyptest-cl-treat-wchar-t-as-built-in-type.py +22 -0
  1404. data/ext/gyp/test/win/gyptest-cl-warning-as-error.py +30 -0
  1405. data/ext/gyp/test/win/gyptest-cl-warning-level.py +41 -0
  1406. data/ext/gyp/test/win/gyptest-command-quote.py +42 -0
  1407. data/ext/gyp/test/win/gyptest-crosscompile-ar.py +29 -0
  1408. data/ext/gyp/test/win/gyptest-lib-ltcg.py +22 -0
  1409. data/ext/gyp/test/win/gyptest-link-additional-deps.py +22 -0
  1410. data/ext/gyp/test/win/gyptest-link-additional-options.py +22 -0
  1411. data/ext/gyp/test/win/gyptest-link-aslr.py +35 -0
  1412. data/ext/gyp/test/win/gyptest-link-base-address.py +62 -0
  1413. data/ext/gyp/test/win/gyptest-link-debug-info.py +26 -0
  1414. data/ext/gyp/test/win/gyptest-link-default-libs.py +22 -0
  1415. data/ext/gyp/test/win/gyptest-link-deffile.py +43 -0
  1416. data/ext/gyp/test/win/gyptest-link-defrelink.py +56 -0
  1417. data/ext/gyp/test/win/gyptest-link-delay-load-dlls.py +35 -0
  1418. data/ext/gyp/test/win/gyptest-link-embed-manifest.py +100 -0
  1419. data/ext/gyp/test/win/gyptest-link-enable-uac.py +104 -0
  1420. data/ext/gyp/test/win/gyptest-link-enable-winrt-app-revision.py +43 -0
  1421. data/ext/gyp/test/win/gyptest-link-enable-winrt-target-platform-version.py +47 -0
  1422. data/ext/gyp/test/win/gyptest-link-enable-winrt.py +37 -0
  1423. data/ext/gyp/test/win/gyptest-link-entrypointsymbol.py +24 -0
  1424. data/ext/gyp/test/win/gyptest-link-fixed-base.py +40 -0
  1425. data/ext/gyp/test/win/gyptest-link-force-symbol-reference.py +26 -0
  1426. data/ext/gyp/test/win/gyptest-link-generate-manifest.py +127 -0
  1427. data/ext/gyp/test/win/gyptest-link-incremental.py +37 -0
  1428. data/ext/gyp/test/win/gyptest-link-large-address-aware.py +35 -0
  1429. data/ext/gyp/test/win/gyptest-link-large-pdb.py +76 -0
  1430. data/ext/gyp/test/win/gyptest-link-library-adjust.py +21 -0
  1431. data/ext/gyp/test/win/gyptest-link-library-directories.py +35 -0
  1432. data/ext/gyp/test/win/gyptest-link-ltcg.py +44 -0
  1433. data/ext/gyp/test/win/gyptest-link-mapfile.py +44 -0
  1434. data/ext/gyp/test/win/gyptest-link-nodefaultlib.py +24 -0
  1435. data/ext/gyp/test/win/gyptest-link-noimportlib.py +30 -0
  1436. data/ext/gyp/test/win/gyptest-link-nxcompat.py +37 -0
  1437. data/ext/gyp/test/win/gyptest-link-opt-icf.py +41 -0
  1438. data/ext/gyp/test/win/gyptest-link-opt-ref.py +40 -0
  1439. data/ext/gyp/test/win/gyptest-link-ordering.py +103 -0
  1440. data/ext/gyp/test/win/gyptest-link-outputfile.py +28 -0
  1441. data/ext/gyp/test/win/gyptest-link-pdb-no-output.py +25 -0
  1442. data/ext/gyp/test/win/gyptest-link-pdb-output.py +33 -0
  1443. data/ext/gyp/test/win/gyptest-link-pdb.py +35 -0
  1444. data/ext/gyp/test/win/gyptest-link-pgo.py +75 -0
  1445. data/ext/gyp/test/win/gyptest-link-profile.py +37 -0
  1446. data/ext/gyp/test/win/gyptest-link-restat-importlib.py +47 -0
  1447. data/ext/gyp/test/win/gyptest-link-safeseh.py +46 -0
  1448. data/ext/gyp/test/win/gyptest-link-shard.py +30 -0
  1449. data/ext/gyp/test/win/gyptest-link-stacksize.py +62 -0
  1450. data/ext/gyp/test/win/gyptest-link-subsystem.py +38 -0
  1451. data/ext/gyp/test/win/gyptest-link-target-machine.py +28 -0
  1452. data/ext/gyp/test/win/gyptest-link-tsaware.py +33 -0
  1453. data/ext/gyp/test/win/gyptest-link-uldi-depending-on-module.py +24 -0
  1454. data/ext/gyp/test/win/gyptest-link-uldi.py +28 -0
  1455. data/ext/gyp/test/win/gyptest-link-unsupported-manifest.py +27 -0
  1456. data/ext/gyp/test/win/gyptest-link-update-manifest.py +104 -0
  1457. data/ext/gyp/test/win/gyptest-link-warnings-as-errors.py +24 -0
  1458. data/ext/gyp/test/win/gyptest-long-command-line.py +23 -0
  1459. data/ext/gyp/test/win/gyptest-macro-projectname.py +24 -0
  1460. data/ext/gyp/test/win/gyptest-macro-targetext.py +26 -0
  1461. data/ext/gyp/test/win/gyptest-macro-targetfilename.py +37 -0
  1462. data/ext/gyp/test/win/gyptest-macro-targetname.py +29 -0
  1463. data/ext/gyp/test/win/gyptest-macro-targetpath.py +30 -0
  1464. data/ext/gyp/test/win/gyptest-macro-vcinstalldir.py +24 -0
  1465. data/ext/gyp/test/win/gyptest-macros-containing-gyp.py +21 -0
  1466. data/ext/gyp/test/win/gyptest-macros-in-inputs-and-outputs.py +27 -0
  1467. data/ext/gyp/test/win/gyptest-midl-excluded.py +22 -0
  1468. data/ext/gyp/test/win/gyptest-midl-includedirs.py +21 -0
  1469. data/ext/gyp/test/win/gyptest-midl-rules.py +28 -0
  1470. data/ext/gyp/test/win/gyptest-ml-safeseh.py +22 -0
  1471. data/ext/gyp/test/win/gyptest-quoting-commands.py +25 -0
  1472. data/ext/gyp/test/win/gyptest-rc-build.py +29 -0
  1473. data/ext/gyp/test/win/gyptest-sys.py +27 -0
  1474. data/ext/gyp/test/win/gyptest-system-include.py +21 -0
  1475. data/ext/gyp/test/win/idl-excluded/bad.idl +6 -0
  1476. data/ext/gyp/test/win/idl-excluded/copy-file.py +11 -0
  1477. data/ext/gyp/test/win/idl-excluded/idl-excluded.gyp +58 -0
  1478. data/ext/gyp/test/win/idl-excluded/program.cc +7 -0
  1479. data/ext/gyp/test/win/idl-includedirs/hello.cc +7 -0
  1480. data/ext/gyp/test/win/idl-includedirs/idl-includedirs.gyp +26 -0
  1481. data/ext/gyp/test/win/idl-includedirs/subdir/bar.idl +13 -0
  1482. data/ext/gyp/test/win/idl-includedirs/subdir/foo.idl +14 -0
  1483. data/ext/gyp/test/win/idl-rules/Window.idl +9 -0
  1484. data/ext/gyp/test/win/idl-rules/basic-idl.gyp +67 -0
  1485. data/ext/gyp/test/win/idl-rules/history_indexer.idl +17 -0
  1486. data/ext/gyp/test/win/idl-rules/history_indexer_user.cc +15 -0
  1487. data/ext/gyp/test/win/idl-rules/idl_compiler.py +17 -0
  1488. data/ext/gyp/test/win/importlib/dll_no_exports.cc +9 -0
  1489. data/ext/gyp/test/win/importlib/has-exports.cc +10 -0
  1490. data/ext/gyp/test/win/importlib/hello.cc +9 -0
  1491. data/ext/gyp/test/win/importlib/importlib.gyp +30 -0
  1492. data/ext/gyp/test/win/importlib/noimplib.gyp +16 -0
  1493. data/ext/gyp/test/win/large-pdb/dllmain.cc +9 -0
  1494. data/ext/gyp/test/win/large-pdb/large-pdb.gyp +98 -0
  1495. data/ext/gyp/test/win/large-pdb/main.cc +7 -0
  1496. data/ext/gyp/test/win/lib-crosscompile/answer.cc +9 -0
  1497. data/ext/gyp/test/win/lib-crosscompile/answer.h +5 -0
  1498. data/ext/gyp/test/win/lib-crosscompile/use_host_ar.gyp +17 -0
  1499. data/ext/gyp/test/win/lib-flags/answer.cc +9 -0
  1500. data/ext/gyp/test/win/lib-flags/answer.h +5 -0
  1501. data/ext/gyp/test/win/lib-flags/ltcg.gyp +21 -0
  1502. data/ext/gyp/test/win/linker-flags/a/x.cc +7 -0
  1503. data/ext/gyp/test/win/linker-flags/a/z.cc +7 -0
  1504. data/ext/gyp/test/win/linker-flags/additional-deps.cc +10 -0
  1505. data/ext/gyp/test/win/linker-flags/additional-deps.gyp +30 -0
  1506. data/ext/gyp/test/win/linker-flags/additional-options.gyp +29 -0
  1507. data/ext/gyp/test/win/linker-flags/aslr.gyp +35 -0
  1508. data/ext/gyp/test/win/linker-flags/b/y.cc +7 -0
  1509. data/ext/gyp/test/win/linker-flags/base-address.gyp +38 -0
  1510. data/ext/gyp/test/win/linker-flags/debug-info.gyp +28 -0
  1511. data/ext/gyp/test/win/linker-flags/deffile-multiple.gyp +17 -0
  1512. data/ext/gyp/test/win/linker-flags/deffile.cc +13 -0
  1513. data/ext/gyp/test/win/linker-flags/deffile.def +8 -0
  1514. data/ext/gyp/test/win/linker-flags/deffile.gyp +38 -0
  1515. data/ext/gyp/test/win/linker-flags/delay-load-dlls.gyp +35 -0
  1516. data/ext/gyp/test/win/linker-flags/delay-load.cc +10 -0
  1517. data/ext/gyp/test/win/linker-flags/embed-manifest.gyp +109 -0
  1518. data/ext/gyp/test/win/linker-flags/enable-uac.gyp +45 -0
  1519. data/ext/gyp/test/win/linker-flags/entrypointsymbol.cc +13 -0
  1520. data/ext/gyp/test/win/linker-flags/entrypointsymbol.gyp +28 -0
  1521. data/ext/gyp/test/win/linker-flags/extra.manifest +11 -0
  1522. data/ext/gyp/test/win/linker-flags/extra2.manifest +11 -0
  1523. data/ext/gyp/test/win/linker-flags/fixed-base.gyp +52 -0
  1524. data/ext/gyp/test/win/linker-flags/force-symbol-reference.gyp +39 -0
  1525. data/ext/gyp/test/win/linker-flags/generate-manifest.gyp +166 -0
  1526. data/ext/gyp/test/win/linker-flags/hello.cc +7 -0
  1527. data/ext/gyp/test/win/linker-flags/incremental.gyp +65 -0
  1528. data/ext/gyp/test/win/linker-flags/inline_test.cc +12 -0
  1529. data/ext/gyp/test/win/linker-flags/inline_test.h +5 -0
  1530. data/ext/gyp/test/win/linker-flags/inline_test_main.cc +15 -0
  1531. data/ext/gyp/test/win/linker-flags/large-address-aware.gyp +28 -0
  1532. data/ext/gyp/test/win/linker-flags/library-adjust.cc +10 -0
  1533. data/ext/gyp/test/win/linker-flags/library-adjust.gyp +16 -0
  1534. data/ext/gyp/test/win/linker-flags/library-directories-define.cc +7 -0
  1535. data/ext/gyp/test/win/linker-flags/library-directories-reference.cc +10 -0
  1536. data/ext/gyp/test/win/linker-flags/library-directories.gyp +42 -0
  1537. data/ext/gyp/test/win/linker-flags/link-ordering.gyp +95 -0
  1538. data/ext/gyp/test/win/linker-flags/link-warning.cc +10 -0
  1539. data/ext/gyp/test/win/linker-flags/ltcg.gyp +42 -0
  1540. data/ext/gyp/test/win/linker-flags/main-crt.c +8 -0
  1541. data/ext/gyp/test/win/linker-flags/manifest-in-comment.cc +13 -0
  1542. data/ext/gyp/test/win/linker-flags/mapfile.cc +12 -0
  1543. data/ext/gyp/test/win/linker-flags/mapfile.gyp +45 -0
  1544. data/ext/gyp/test/win/linker-flags/no-default-libs.cc +18 -0
  1545. data/ext/gyp/test/win/linker-flags/no-default-libs.gyp +13 -0
  1546. data/ext/gyp/test/win/linker-flags/nodefaultlib.cc +13 -0
  1547. data/ext/gyp/test/win/linker-flags/nodefaultlib.gyp +30 -0
  1548. data/ext/gyp/test/win/linker-flags/nxcompat.gyp +35 -0
  1549. data/ext/gyp/test/win/linker-flags/opt-icf.cc +29 -0
  1550. data/ext/gyp/test/win/linker-flags/opt-icf.gyp +63 -0
  1551. data/ext/gyp/test/win/linker-flags/opt-ref.cc +11 -0
  1552. data/ext/gyp/test/win/linker-flags/opt-ref.gyp +56 -0
  1553. data/ext/gyp/test/win/linker-flags/outputfile.gyp +58 -0
  1554. data/ext/gyp/test/win/linker-flags/pdb-output.gyp +49 -0
  1555. data/ext/gyp/test/win/linker-flags/pgo.gyp +143 -0
  1556. data/ext/gyp/test/win/linker-flags/profile.gyp +50 -0
  1557. data/ext/gyp/test/win/linker-flags/program-database.gyp +40 -0
  1558. data/ext/gyp/test/win/linker-flags/safeseh.gyp +79 -0
  1559. data/ext/gyp/test/win/linker-flags/safeseh_hello.cc +11 -0
  1560. data/ext/gyp/test/win/linker-flags/safeseh_zero.asm +10 -0
  1561. data/ext/gyp/test/win/linker-flags/safeseh_zero64.asm +9 -0
  1562. data/ext/gyp/test/win/linker-flags/stacksize.gyp +44 -0
  1563. data/ext/gyp/test/win/linker-flags/subdir/library.gyp +13 -0
  1564. data/ext/gyp/test/win/linker-flags/subsystem-windows.cc +9 -0
  1565. data/ext/gyp/test/win/linker-flags/subsystem.gyp +70 -0
  1566. data/ext/gyp/test/win/linker-flags/target-machine.gyp +48 -0
  1567. data/ext/gyp/test/win/linker-flags/tsaware.gyp +28 -0
  1568. data/ext/gyp/test/win/linker-flags/unsupported-manifest.gyp +13 -0
  1569. data/ext/gyp/test/win/linker-flags/update_pgd.py +35 -0
  1570. data/ext/gyp/test/win/linker-flags/warn-as-error.gyp +33 -0
  1571. data/ext/gyp/test/win/linker-flags/x.cc +7 -0
  1572. data/ext/gyp/test/win/linker-flags/y.cc +7 -0
  1573. data/ext/gyp/test/win/linker-flags/z.cc +7 -0
  1574. data/ext/gyp/test/win/long-command-line/function.cc +7 -0
  1575. data/ext/gyp/test/win/long-command-line/hello.cc +7 -0
  1576. data/ext/gyp/test/win/long-command-line/long-command-line.gyp +54 -0
  1577. data/ext/gyp/test/win/ml-safeseh/a.asm +10 -0
  1578. data/ext/gyp/test/win/ml-safeseh/hello.cc +11 -0
  1579. data/ext/gyp/test/win/ml-safeseh/ml-safeseh.gyp +24 -0
  1580. data/ext/gyp/test/win/precompiled/gyptest-all.py +21 -0
  1581. data/ext/gyp/test/win/precompiled/hello.c +14 -0
  1582. data/ext/gyp/test/win/precompiled/hello.gyp +28 -0
  1583. data/ext/gyp/test/win/precompiled/hello2.c +13 -0
  1584. data/ext/gyp/test/win/precompiled/precomp.c +8 -0
  1585. data/ext/gyp/test/win/rc-build/Resource.h +26 -0
  1586. data/ext/gyp/test/win/rc-build/hello.cpp +30 -0
  1587. data/ext/gyp/test/win/rc-build/hello.gyp +92 -0
  1588. data/ext/gyp/test/win/rc-build/hello.h +3 -0
  1589. data/ext/gyp/test/win/rc-build/hello.ico +0 -0
  1590. data/ext/gyp/test/win/rc-build/hello.rc +86 -0
  1591. data/ext/gyp/test/win/rc-build/hello3.rc +87 -0
  1592. data/ext/gyp/test/win/rc-build/small.ico +0 -0
  1593. data/ext/gyp/test/win/rc-build/subdir/hello2.rc +87 -0
  1594. data/ext/gyp/test/win/rc-build/subdir/include.h +1 -0
  1595. data/ext/gyp/test/win/rc-build/targetver.h +24 -0
  1596. data/ext/gyp/test/win/shard/hello.cc +7 -0
  1597. data/ext/gyp/test/win/shard/hello1.cc +7 -0
  1598. data/ext/gyp/test/win/shard/hello2.cc +7 -0
  1599. data/ext/gyp/test/win/shard/hello3.cc +7 -0
  1600. data/ext/gyp/test/win/shard/hello4.cc +7 -0
  1601. data/ext/gyp/test/win/shard/shard.gyp +31 -0
  1602. data/ext/gyp/test/win/shard/shard_ref.gyp +41 -0
  1603. data/ext/gyp/test/win/system-include/bar/header.h +0 -0
  1604. data/ext/gyp/test/win/system-include/common/commonheader.h +0 -0
  1605. data/ext/gyp/test/win/system-include/foo/header.h +0 -0
  1606. data/ext/gyp/test/win/system-include/main.cc +4 -0
  1607. data/ext/gyp/test/win/system-include/test.gyp +26 -0
  1608. data/ext/gyp/test/win/uldi/a.cc +7 -0
  1609. data/ext/gyp/test/win/uldi/b.cc +7 -0
  1610. data/ext/gyp/test/win/uldi/dll.cc +6 -0
  1611. data/ext/gyp/test/win/uldi/exe.cc +7 -0
  1612. data/ext/gyp/test/win/uldi/main.cc +10 -0
  1613. data/ext/gyp/test/win/uldi/uldi-depending-on-module.gyp +42 -0
  1614. data/ext/gyp/test/win/uldi/uldi.gyp +45 -0
  1615. data/ext/gyp/test/win/vs-macros/as.py +20 -0
  1616. data/ext/gyp/test/win/vs-macros/containing-gyp.gyp +39 -0
  1617. data/ext/gyp/test/win/vs-macros/do_stuff.py +8 -0
  1618. data/ext/gyp/test/win/vs-macros/hello.cc +7 -0
  1619. data/ext/gyp/test/win/vs-macros/input-output-macros.gyp +32 -0
  1620. data/ext/gyp/test/win/vs-macros/input.S +0 -0
  1621. data/ext/gyp/test/win/vs-macros/projectname.gyp +29 -0
  1622. data/ext/gyp/test/win/vs-macros/stuff.blah +1 -0
  1623. data/ext/gyp/test/win/vs-macros/targetext.gyp +59 -0
  1624. data/ext/gyp/test/win/vs-macros/targetfilename.gyp +59 -0
  1625. data/ext/gyp/test/win/vs-macros/targetname.gyp +52 -0
  1626. data/ext/gyp/test/win/vs-macros/targetpath.gyp +59 -0
  1627. data/ext/gyp/test/win/vs-macros/test_exists.py +10 -0
  1628. data/ext/gyp/test/win/vs-macros/vcinstalldir.gyp +41 -0
  1629. data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.c +10 -0
  1630. data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.gyp +32 -0
  1631. data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.h +13 -0
  1632. data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.rc +14 -0
  1633. data/ext/gyp/test/win/win-tool/copies_readonly_files.gyp +29 -0
  1634. data/ext/gyp/test/win/win-tool/gyptest-win-tool-handles-readonly-files.py +55 -0
  1635. data/ext/gyp/test/win/winrt-app-type-revision/dllmain.cc +30 -0
  1636. data/ext/gyp/test/win/winrt-app-type-revision/winrt-app-type-revison.gyp +43 -0
  1637. data/ext/gyp/test/win/winrt-target-platform-version/dllmain.cc +30 -0
  1638. data/ext/gyp/test/win/winrt-target-platform-version/winrt-target-platform-version.gyp +49 -0
  1639. data/ext/gyp/test/xcode-ninja/list_excluded/gyptest-all.py +49 -0
  1640. data/ext/gyp/test/xcode-ninja/list_excluded/hello.cpp +7 -0
  1641. data/ext/gyp/test/xcode-ninja/list_excluded/hello_exclude.gyp +19 -0
  1642. data/ext/gyp/test/xcode-ninja/list_excluded/hello_excluded.cpp +7 -0
  1643. data/ext/gyp/tools/README +15 -0
  1644. data/ext/gyp/tools/Xcode/README +5 -0
  1645. data/ext/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
  1646. data/ext/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
  1647. data/ext/gyp/tools/emacs/README +12 -0
  1648. data/ext/gyp/tools/emacs/gyp-tests.el +63 -0
  1649. data/ext/gyp/tools/emacs/gyp.el +275 -0
  1650. data/ext/gyp/tools/emacs/run-unit-tests.sh +7 -0
  1651. data/ext/gyp/tools/emacs/testdata/media.gyp +1105 -0
  1652. data/ext/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
  1653. data/ext/gyp/tools/graphviz.py +102 -0
  1654. data/ext/gyp/tools/pretty_gyp.py +156 -0
  1655. data/ext/gyp/tools/pretty_sln.py +171 -0
  1656. data/ext/gyp/tools/pretty_vcproj.py +337 -0
  1657. data/ext/libuv/.gitattributes +1 -0
  1658. data/ext/libuv/.github/ISSUE_TEMPLATE.md +13 -0
  1659. data/ext/libuv/.github/stale.yml +22 -0
  1660. data/ext/libuv/.gitignore +80 -0
  1661. data/ext/libuv/.mailmap +50 -0
  1662. data/ext/libuv/AUTHORS +415 -0
  1663. data/ext/libuv/CMakeLists.txt +430 -0
  1664. data/ext/libuv/CONTRIBUTING.md +172 -0
  1665. data/ext/libuv/ChangeLog +4548 -0
  1666. data/ext/libuv/LICENSE +70 -0
  1667. data/ext/libuv/LICENSE-docs +396 -0
  1668. data/ext/libuv/MAINTAINERS.md +48 -0
  1669. data/ext/libuv/Makefile.am +548 -0
  1670. data/ext/libuv/README.md +431 -0
  1671. data/ext/libuv/SUPPORTED_PLATFORMS.md +68 -0
  1672. data/ext/libuv/android-configure-arm +23 -0
  1673. data/ext/libuv/android-configure-arm64 +23 -0
  1674. data/ext/libuv/android-configure-x86 +23 -0
  1675. data/ext/libuv/android-configure-x86_64 +25 -0
  1676. data/ext/libuv/appveyor.yml +32 -0
  1677. data/ext/libuv/autogen.sh +46 -0
  1678. data/ext/libuv/common.gypi +213 -0
  1679. data/ext/libuv/configure.ac +82 -0
  1680. data/ext/libuv/docs/Makefile +183 -0
  1681. data/ext/libuv/docs/code/cgi/main.c +81 -0
  1682. data/ext/libuv/docs/code/cgi/tick.c +13 -0
  1683. data/ext/libuv/docs/code/detach/main.c +31 -0
  1684. data/ext/libuv/docs/code/dns/main.c +80 -0
  1685. data/ext/libuv/docs/code/helloworld/main.c +15 -0
  1686. data/ext/libuv/docs/code/idle-basic/main.c +24 -0
  1687. data/ext/libuv/docs/code/idle-compute/main.c +43 -0
  1688. data/ext/libuv/docs/code/interfaces/main.c +33 -0
  1689. data/ext/libuv/docs/code/locks/main.c +57 -0
  1690. data/ext/libuv/docs/code/multi-echo-server/hammer.js +20 -0
  1691. data/ext/libuv/docs/code/multi-echo-server/main.c +114 -0
  1692. data/ext/libuv/docs/code/multi-echo-server/worker.c +88 -0
  1693. data/ext/libuv/docs/code/onchange/main.c +44 -0
  1694. data/ext/libuv/docs/code/pipe-echo-server/main.c +94 -0
  1695. data/ext/libuv/docs/code/plugin/hello.c +5 -0
  1696. data/ext/libuv/docs/code/plugin/main.c +39 -0
  1697. data/ext/libuv/docs/code/plugin/plugin.h +7 -0
  1698. data/ext/libuv/docs/code/proc-streams/main.c +49 -0
  1699. data/ext/libuv/docs/code/proc-streams/test.c +8 -0
  1700. data/ext/libuv/docs/code/progress/main.c +47 -0
  1701. data/ext/libuv/docs/code/queue-cancel/main.c +59 -0
  1702. data/ext/libuv/docs/code/queue-work/main.c +44 -0
  1703. data/ext/libuv/docs/code/ref-timer/main.c +29 -0
  1704. data/ext/libuv/docs/code/signal/main.c +66 -0
  1705. data/ext/libuv/docs/code/spawn/main.c +36 -0
  1706. data/ext/libuv/docs/code/tcp-echo-server/main.c +87 -0
  1707. data/ext/libuv/docs/code/thread-create/main.c +36 -0
  1708. data/ext/libuv/docs/code/tty/main.c +29 -0
  1709. data/ext/libuv/docs/code/tty-gravity/main.c +48 -0
  1710. data/ext/libuv/docs/code/udp-dhcp/main.c +127 -0
  1711. data/ext/libuv/docs/code/uvcat/main.c +63 -0
  1712. data/ext/libuv/docs/code/uvstop/main.c +33 -0
  1713. data/ext/libuv/docs/code/uvtee/main.c +80 -0
  1714. data/ext/libuv/docs/code/uvwget/main.c +166 -0
  1715. data/ext/libuv/docs/make.bat +243 -0
  1716. data/ext/libuv/docs/src/api.rst +35 -0
  1717. data/ext/libuv/docs/src/async.rst +65 -0
  1718. data/ext/libuv/docs/src/check.rst +46 -0
  1719. data/ext/libuv/docs/src/conf.py +348 -0
  1720. data/ext/libuv/docs/src/design.rst +140 -0
  1721. data/ext/libuv/docs/src/dll.rst +44 -0
  1722. data/ext/libuv/docs/src/dns.rst +108 -0
  1723. data/ext/libuv/docs/src/errors.rst +365 -0
  1724. data/ext/libuv/docs/src/fs.rst +689 -0
  1725. data/ext/libuv/docs/src/fs_event.rst +132 -0
  1726. data/ext/libuv/docs/src/fs_poll.rst +77 -0
  1727. data/ext/libuv/docs/src/guide/about.rst +22 -0
  1728. data/ext/libuv/docs/src/guide/basics.rst +219 -0
  1729. data/ext/libuv/docs/src/guide/eventloops.rst +48 -0
  1730. data/ext/libuv/docs/src/guide/filesystem.rst +330 -0
  1731. data/ext/libuv/docs/src/guide/introduction.rst +75 -0
  1732. data/ext/libuv/docs/src/guide/networking.rst +250 -0
  1733. data/ext/libuv/docs/src/guide/processes.rst +406 -0
  1734. data/ext/libuv/docs/src/guide/threads.rst +385 -0
  1735. data/ext/libuv/docs/src/guide/utilities.rst +437 -0
  1736. data/ext/libuv/docs/src/guide.rst +22 -0
  1737. data/ext/libuv/docs/src/handle.rst +283 -0
  1738. data/ext/libuv/docs/src/idle.rst +54 -0
  1739. data/ext/libuv/docs/src/index.rst +62 -0
  1740. data/ext/libuv/docs/src/loop.rst +238 -0
  1741. data/ext/libuv/docs/src/migration_010_100.rst +244 -0
  1742. data/ext/libuv/docs/src/misc.rst +702 -0
  1743. data/ext/libuv/docs/src/pipe.rst +116 -0
  1744. data/ext/libuv/docs/src/poll.rst +121 -0
  1745. data/ext/libuv/docs/src/prepare.rst +46 -0
  1746. data/ext/libuv/docs/src/process.rst +250 -0
  1747. data/ext/libuv/docs/src/request.rst +116 -0
  1748. data/ext/libuv/docs/src/signal.rst +101 -0
  1749. data/ext/libuv/docs/src/sphinx-plugins/manpage.py +45 -0
  1750. data/ext/libuv/docs/src/static/architecture.png +0 -0
  1751. data/ext/libuv/docs/src/static/diagrams.key/Data/st0-311.jpg +0 -0
  1752. data/ext/libuv/docs/src/static/diagrams.key/Data/st1-475.jpg +0 -0
  1753. data/ext/libuv/docs/src/static/diagrams.key/Index.zip +0 -0
  1754. data/ext/libuv/docs/src/static/diagrams.key/Metadata/BuildVersionHistory.plist +8 -0
  1755. data/ext/libuv/docs/src/static/diagrams.key/Metadata/DocumentIdentifier +1 -0
  1756. data/ext/libuv/docs/src/static/diagrams.key/Metadata/Properties.plist +0 -0
  1757. data/ext/libuv/docs/src/static/diagrams.key/preview-micro.jpg +0 -0
  1758. data/ext/libuv/docs/src/static/diagrams.key/preview-web.jpg +0 -0
  1759. data/ext/libuv/docs/src/static/diagrams.key/preview.jpg +0 -0
  1760. data/ext/libuv/docs/src/static/favicon.ico +0 -0
  1761. data/ext/libuv/docs/src/static/logo.png +0 -0
  1762. data/ext/libuv/docs/src/static/loop_iteration.png +0 -0
  1763. data/ext/libuv/docs/src/stream.rst +237 -0
  1764. data/ext/libuv/docs/src/tcp.rst +125 -0
  1765. data/ext/libuv/docs/src/threading.rst +197 -0
  1766. data/ext/libuv/docs/src/threadpool.rst +69 -0
  1767. data/ext/libuv/docs/src/timer.rst +81 -0
  1768. data/ext/libuv/docs/src/tty.rst +139 -0
  1769. data/ext/libuv/docs/src/udp.rst +390 -0
  1770. data/ext/libuv/docs/src/upgrading.rst +11 -0
  1771. data/ext/libuv/docs/src/version.rst +60 -0
  1772. data/ext/libuv/gyp_uv.py +73 -0
  1773. data/ext/libuv/img/banner.png +0 -0
  1774. data/ext/libuv/img/logos.svg +152 -0
  1775. data/ext/libuv/include/uv/aix.h +32 -0
  1776. data/ext/libuv/include/uv/android-ifaddrs.h +54 -0
  1777. data/ext/libuv/include/uv/bsd.h +34 -0
  1778. data/ext/libuv/include/uv/darwin.h +61 -0
  1779. data/ext/libuv/include/uv/errno.h +448 -0
  1780. data/ext/libuv/include/uv/linux.h +34 -0
  1781. data/ext/libuv/include/uv/os390.h +33 -0
  1782. data/ext/libuv/include/uv/posix.h +31 -0
  1783. data/ext/libuv/include/uv/stdint-msvc2008.h +247 -0
  1784. data/ext/libuv/include/uv/sunos.h +44 -0
  1785. data/ext/libuv/include/uv/threadpool.h +37 -0
  1786. data/ext/libuv/include/uv/tree.h +768 -0
  1787. data/ext/libuv/include/uv/unix.h +505 -0
  1788. data/ext/libuv/include/uv/version.h +43 -0
  1789. data/ext/libuv/include/uv/win.h +691 -0
  1790. data/ext/libuv/include/uv.h +1782 -0
  1791. data/ext/libuv/libuv.pc.in +12 -0
  1792. data/ext/libuv/m4/.gitignore +4 -0
  1793. data/ext/libuv/m4/as_case.m4 +21 -0
  1794. data/ext/libuv/m4/libuv-check-flags.m4 +319 -0
  1795. data/ext/libuv/src/fs-poll.c +287 -0
  1796. data/ext/libuv/src/heap-inl.h +245 -0
  1797. data/ext/libuv/src/idna.c +291 -0
  1798. data/ext/libuv/src/idna.h +31 -0
  1799. data/ext/libuv/src/inet.c +302 -0
  1800. data/ext/libuv/src/queue.h +108 -0
  1801. data/ext/libuv/src/random.c +123 -0
  1802. data/ext/libuv/src/strscpy.c +17 -0
  1803. data/ext/libuv/src/strscpy.h +18 -0
  1804. data/ext/libuv/src/threadpool.c +388 -0
  1805. data/ext/libuv/src/timer.c +181 -0
  1806. data/ext/libuv/src/unix/aix-common.c +337 -0
  1807. data/ext/libuv/src/unix/aix.c +1066 -0
  1808. data/ext/libuv/src/unix/android-ifaddrs.c +712 -0
  1809. data/ext/libuv/src/unix/async.c +298 -0
  1810. data/ext/libuv/src/unix/atomic-ops.h +59 -0
  1811. data/ext/libuv/src/unix/bsd-ifaddrs.c +161 -0
  1812. data/ext/libuv/src/unix/bsd-proctitle.c +93 -0
  1813. data/ext/libuv/src/unix/core.c +1571 -0
  1814. data/ext/libuv/src/unix/cygwin.c +53 -0
  1815. data/ext/libuv/src/unix/darwin-proctitle.c +202 -0
  1816. data/ext/libuv/src/unix/darwin.c +225 -0
  1817. data/ext/libuv/src/unix/dl.c +80 -0
  1818. data/ext/libuv/src/unix/freebsd.c +290 -0
  1819. data/ext/libuv/src/unix/fs.c +2044 -0
  1820. data/ext/libuv/src/unix/fsevents.c +924 -0
  1821. data/ext/libuv/src/unix/getaddrinfo.c +255 -0
  1822. data/ext/libuv/src/unix/getnameinfo.c +121 -0
  1823. data/ext/libuv/src/unix/haiku.c +167 -0
  1824. data/ext/libuv/src/unix/ibmi.c +249 -0
  1825. data/ext/libuv/src/unix/internal.h +331 -0
  1826. data/ext/libuv/src/unix/kqueue.c +544 -0
  1827. data/ext/libuv/src/unix/linux-core.c +1091 -0
  1828. data/ext/libuv/src/unix/linux-inotify.c +354 -0
  1829. data/ext/libuv/src/unix/linux-syscalls.c +394 -0
  1830. data/ext/libuv/src/unix/linux-syscalls.h +153 -0
  1831. data/ext/libuv/src/unix/loop-watcher.c +68 -0
  1832. data/ext/libuv/src/unix/loop.c +194 -0
  1833. data/ext/libuv/src/unix/netbsd.c +259 -0
  1834. data/ext/libuv/src/unix/no-fsevents.c +42 -0
  1835. data/ext/libuv/src/unix/no-proctitle.c +42 -0
  1836. data/ext/libuv/src/unix/openbsd.c +244 -0
  1837. data/ext/libuv/src/unix/os390-syscalls.c +519 -0
  1838. data/ext/libuv/src/unix/os390-syscalls.h +68 -0
  1839. data/ext/libuv/src/unix/os390.c +1003 -0
  1840. data/ext/libuv/src/unix/pipe.c +377 -0
  1841. data/ext/libuv/src/unix/poll.c +150 -0
  1842. data/ext/libuv/src/unix/posix-hrtime.c +35 -0
  1843. data/ext/libuv/src/unix/posix-poll.c +336 -0
  1844. data/ext/libuv/src/unix/process.c +603 -0
  1845. data/ext/libuv/src/unix/procfs-exepath.c +45 -0
  1846. data/ext/libuv/src/unix/proctitle.c +132 -0
  1847. data/ext/libuv/src/unix/pthread-fixes.c +56 -0
  1848. data/ext/libuv/src/unix/random-devurandom.c +93 -0
  1849. data/ext/libuv/src/unix/random-getentropy.c +57 -0
  1850. data/ext/libuv/src/unix/random-getrandom.c +88 -0
  1851. data/ext/libuv/src/unix/random-sysctl-linux.c +99 -0
  1852. data/ext/libuv/src/unix/signal.c +577 -0
  1853. data/ext/libuv/src/unix/spinlock.h +53 -0
  1854. data/ext/libuv/src/unix/stream.c +1697 -0
  1855. data/ext/libuv/src/unix/sunos.c +836 -0
  1856. data/ext/libuv/src/unix/sysinfo-loadavg.c +36 -0
  1857. data/ext/libuv/src/unix/sysinfo-memory.c +42 -0
  1858. data/ext/libuv/src/unix/tcp.c +450 -0
  1859. data/ext/libuv/src/unix/thread.c +852 -0
  1860. data/ext/libuv/src/unix/tty.c +381 -0
  1861. data/ext/libuv/src/unix/udp.c +1136 -0
  1862. data/ext/libuv/src/uv-common.c +812 -0
  1863. data/ext/libuv/src/uv-common.h +326 -0
  1864. data/ext/libuv/src/uv-data-getter-setters.c +98 -0
  1865. data/ext/libuv/src/version.c +45 -0
  1866. data/ext/libuv/src/win/async.c +98 -0
  1867. data/ext/libuv/src/win/atomicops-inl.h +57 -0
  1868. data/ext/libuv/src/win/core.c +657 -0
  1869. data/ext/libuv/src/win/detect-wakeup.c +35 -0
  1870. data/ext/libuv/src/win/dl.c +136 -0
  1871. data/ext/libuv/src/win/error.c +172 -0
  1872. data/ext/libuv/src/win/fs-event.c +589 -0
  1873. data/ext/libuv/src/win/fs-fd-hash-inl.h +178 -0
  1874. data/ext/libuv/src/win/fs.c +3238 -0
  1875. data/ext/libuv/src/win/getaddrinfo.c +463 -0
  1876. data/ext/libuv/src/win/getnameinfo.c +157 -0
  1877. data/ext/libuv/src/win/handle-inl.h +180 -0
  1878. data/ext/libuv/src/win/handle.c +162 -0
  1879. data/ext/libuv/src/win/internal.h +344 -0
  1880. data/ext/libuv/src/win/loop-watcher.c +122 -0
  1881. data/ext/libuv/src/win/pipe.c +2386 -0
  1882. data/ext/libuv/src/win/poll.c +643 -0
  1883. data/ext/libuv/src/win/process-stdio.c +512 -0
  1884. data/ext/libuv/src/win/process.c +1282 -0
  1885. data/ext/libuv/src/win/req-inl.h +221 -0
  1886. data/ext/libuv/src/win/signal.c +277 -0
  1887. data/ext/libuv/src/win/snprintf.c +42 -0
  1888. data/ext/libuv/src/win/stream-inl.h +54 -0
  1889. data/ext/libuv/src/win/stream.c +243 -0
  1890. data/ext/libuv/src/win/tcp.c +1520 -0
  1891. data/ext/libuv/src/win/thread.c +520 -0
  1892. data/ext/libuv/src/win/tty.c +2348 -0
  1893. data/ext/libuv/src/win/udp.c +1185 -0
  1894. data/ext/libuv/src/win/util.c +1879 -0
  1895. data/ext/libuv/src/win/winapi.c +149 -0
  1896. data/ext/libuv/src/win/winapi.h +4751 -0
  1897. data/ext/libuv/src/win/winsock.c +575 -0
  1898. data/ext/libuv/src/win/winsock.h +201 -0
  1899. data/ext/libuv/test/benchmark-async-pummel.c +119 -0
  1900. data/ext/libuv/test/benchmark-async.c +141 -0
  1901. data/ext/libuv/test/benchmark-fs-stat.c +136 -0
  1902. data/ext/libuv/test/benchmark-getaddrinfo.c +92 -0
  1903. data/ext/libuv/test/benchmark-list.h +163 -0
  1904. data/ext/libuv/test/benchmark-loop-count.c +92 -0
  1905. data/ext/libuv/test/benchmark-million-async.c +112 -0
  1906. data/ext/libuv/test/benchmark-million-timers.c +86 -0
  1907. data/ext/libuv/test/benchmark-multi-accept.c +447 -0
  1908. data/ext/libuv/test/benchmark-ping-pongs.c +221 -0
  1909. data/ext/libuv/test/benchmark-pound.c +351 -0
  1910. data/ext/libuv/test/benchmark-pump.c +476 -0
  1911. data/ext/libuv/test/benchmark-sizes.c +46 -0
  1912. data/ext/libuv/test/benchmark-spawn.c +164 -0
  1913. data/ext/libuv/test/benchmark-tcp-write-batch.c +144 -0
  1914. data/ext/libuv/test/benchmark-thread.c +64 -0
  1915. data/ext/libuv/test/benchmark-udp-pummel.c +243 -0
  1916. data/ext/libuv/test/blackhole-server.c +121 -0
  1917. data/ext/libuv/test/dns-server.c +340 -0
  1918. data/ext/libuv/test/echo-server.c +382 -0
  1919. data/ext/libuv/test/fixtures/empty_file +0 -0
  1920. data/ext/libuv/test/fixtures/load_error.node +1 -0
  1921. data/ext/libuv/test/fixtures/lorem_ipsum.txt +1 -0
  1922. data/ext/libuv/test/run-benchmarks.c +65 -0
  1923. data/ext/libuv/test/run-tests.c +239 -0
  1924. data/ext/libuv/test/runner-unix.c +450 -0
  1925. data/ext/libuv/test/runner-unix.h +36 -0
  1926. data/ext/libuv/test/runner-win.c +357 -0
  1927. data/ext/libuv/test/runner-win.h +41 -0
  1928. data/ext/libuv/test/runner.c +431 -0
  1929. data/ext/libuv/test/runner.h +176 -0
  1930. data/ext/libuv/test/task.h +238 -0
  1931. data/ext/libuv/test/test-active.c +84 -0
  1932. data/ext/libuv/test/test-async-null-cb.c +64 -0
  1933. data/ext/libuv/test/test-async.c +134 -0
  1934. data/ext/libuv/test/test-barrier.c +148 -0
  1935. data/ext/libuv/test/test-callback-order.c +77 -0
  1936. data/ext/libuv/test/test-callback-stack.c +204 -0
  1937. data/ext/libuv/test/test-close-fd.c +80 -0
  1938. data/ext/libuv/test/test-close-order.c +80 -0
  1939. data/ext/libuv/test/test-condvar.c +267 -0
  1940. data/ext/libuv/test/test-connect-unspecified.c +63 -0
  1941. data/ext/libuv/test/test-connection-fail.c +151 -0
  1942. data/ext/libuv/test/test-cwd-and-chdir.c +58 -0
  1943. data/ext/libuv/test/test-default-loop-close.c +59 -0
  1944. data/ext/libuv/test/test-delayed-accept.c +189 -0
  1945. data/ext/libuv/test/test-dlerror.c +61 -0
  1946. data/ext/libuv/test/test-eintr-handling.c +94 -0
  1947. data/ext/libuv/test/test-embed.c +139 -0
  1948. data/ext/libuv/test/test-emfile.c +121 -0
  1949. data/ext/libuv/test/test-env-vars.c +140 -0
  1950. data/ext/libuv/test/test-error.c +79 -0
  1951. data/ext/libuv/test/test-fail-always.c +29 -0
  1952. data/ext/libuv/test/test-fork.c +683 -0
  1953. data/ext/libuv/test/test-fs-copyfile.c +209 -0
  1954. data/ext/libuv/test/test-fs-event.c +1165 -0
  1955. data/ext/libuv/test/test-fs-fd-hash.c +133 -0
  1956. data/ext/libuv/test/test-fs-open-flags.c +435 -0
  1957. data/ext/libuv/test/test-fs-poll.c +300 -0
  1958. data/ext/libuv/test/test-fs-readdir.c +462 -0
  1959. data/ext/libuv/test/test-fs.c +4238 -0
  1960. data/ext/libuv/test/test-get-currentexe.c +86 -0
  1961. data/ext/libuv/test/test-get-loadavg.c +35 -0
  1962. data/ext/libuv/test/test-get-memory.c +40 -0
  1963. data/ext/libuv/test/test-get-passwd.c +86 -0
  1964. data/ext/libuv/test/test-getaddrinfo.c +191 -0
  1965. data/ext/libuv/test/test-gethostname.c +58 -0
  1966. data/ext/libuv/test/test-getnameinfo.c +101 -0
  1967. data/ext/libuv/test/test-getsockname.c +361 -0
  1968. data/ext/libuv/test/test-getters-setters.c +88 -0
  1969. data/ext/libuv/test/test-gettimeofday.c +39 -0
  1970. data/ext/libuv/test/test-handle-fileno.c +125 -0
  1971. data/ext/libuv/test/test-homedir.c +72 -0
  1972. data/ext/libuv/test/test-hrtime.c +52 -0
  1973. data/ext/libuv/test/test-idle.c +99 -0
  1974. data/ext/libuv/test/test-idna.c +195 -0
  1975. data/ext/libuv/test/test-ip4-addr.c +55 -0
  1976. data/ext/libuv/test/test-ip6-addr.c +171 -0
  1977. data/ext/libuv/test/test-ipc-heavy-traffic-deadlock-bug.c +159 -0
  1978. data/ext/libuv/test/test-ipc-send-recv.c +429 -0
  1979. data/ext/libuv/test/test-ipc.c +974 -0
  1980. data/ext/libuv/test/test-list.h +1064 -0
  1981. data/ext/libuv/test/test-loop-alive.c +67 -0
  1982. data/ext/libuv/test/test-loop-close.c +75 -0
  1983. data/ext/libuv/test/test-loop-configure.c +38 -0
  1984. data/ext/libuv/test/test-loop-handles.c +337 -0
  1985. data/ext/libuv/test/test-loop-stop.c +71 -0
  1986. data/ext/libuv/test/test-loop-time.c +63 -0
  1987. data/ext/libuv/test/test-multiple-listen.c +109 -0
  1988. data/ext/libuv/test/test-mutexes.c +182 -0
  1989. data/ext/libuv/test/test-osx-select.c +140 -0
  1990. data/ext/libuv/test/test-pass-always.c +28 -0
  1991. data/ext/libuv/test/test-ping-pong.c +301 -0
  1992. data/ext/libuv/test/test-pipe-bind-error.c +139 -0
  1993. data/ext/libuv/test/test-pipe-close-stdout-read-stdin.c +112 -0
  1994. data/ext/libuv/test/test-pipe-connect-error.c +95 -0
  1995. data/ext/libuv/test/test-pipe-connect-multiple.c +107 -0
  1996. data/ext/libuv/test/test-pipe-connect-prepare.c +83 -0
  1997. data/ext/libuv/test/test-pipe-getsockname.c +266 -0
  1998. data/ext/libuv/test/test-pipe-pending-instances.c +59 -0
  1999. data/ext/libuv/test/test-pipe-sendmsg.c +172 -0
  2000. data/ext/libuv/test/test-pipe-server-close.c +94 -0
  2001. data/ext/libuv/test/test-pipe-set-fchmod.c +90 -0
  2002. data/ext/libuv/test/test-pipe-set-non-blocking.c +99 -0
  2003. data/ext/libuv/test/test-platform-output.c +170 -0
  2004. data/ext/libuv/test/test-poll-close-doesnt-corrupt-stack.c +114 -0
  2005. data/ext/libuv/test/test-poll-close.c +73 -0
  2006. data/ext/libuv/test/test-poll-closesocket.c +92 -0
  2007. data/ext/libuv/test/test-poll-oob.c +210 -0
  2008. data/ext/libuv/test/test-poll.c +668 -0
  2009. data/ext/libuv/test/test-process-priority.c +83 -0
  2010. data/ext/libuv/test/test-process-title-threadsafe.c +89 -0
  2011. data/ext/libuv/test/test-process-title.c +76 -0
  2012. data/ext/libuv/test/test-queue-foreach-delete.c +204 -0
  2013. data/ext/libuv/test/test-random.c +94 -0
  2014. data/ext/libuv/test/test-ref.c +445 -0
  2015. data/ext/libuv/test/test-run-nowait.c +45 -0
  2016. data/ext/libuv/test/test-run-once.c +48 -0
  2017. data/ext/libuv/test/test-semaphore.c +111 -0
  2018. data/ext/libuv/test/test-shutdown-close.c +108 -0
  2019. data/ext/libuv/test/test-shutdown-eof.c +182 -0
  2020. data/ext/libuv/test/test-shutdown-twice.c +85 -0
  2021. data/ext/libuv/test/test-signal-multiple-loops.c +302 -0
  2022. data/ext/libuv/test/test-signal-pending-on-close.c +94 -0
  2023. data/ext/libuv/test/test-signal.c +325 -0
  2024. data/ext/libuv/test/test-socket-buffer-size.c +77 -0
  2025. data/ext/libuv/test/test-spawn.c +1924 -0
  2026. data/ext/libuv/test/test-stdio-over-pipes.c +256 -0
  2027. data/ext/libuv/test/test-strscpy.c +53 -0
  2028. data/ext/libuv/test/test-tcp-alloc-cb-fail.c +123 -0
  2029. data/ext/libuv/test/test-tcp-bind-error.c +254 -0
  2030. data/ext/libuv/test/test-tcp-bind6-error.c +176 -0
  2031. data/ext/libuv/test/test-tcp-close-accept.c +198 -0
  2032. data/ext/libuv/test/test-tcp-close-reset.c +290 -0
  2033. data/ext/libuv/test/test-tcp-close-while-connecting.c +97 -0
  2034. data/ext/libuv/test/test-tcp-close.c +136 -0
  2035. data/ext/libuv/test/test-tcp-connect-error-after-write.c +98 -0
  2036. data/ext/libuv/test/test-tcp-connect-error.c +73 -0
  2037. data/ext/libuv/test/test-tcp-connect-timeout.c +91 -0
  2038. data/ext/libuv/test/test-tcp-connect6-error.c +71 -0
  2039. data/ext/libuv/test/test-tcp-create-socket-early.c +209 -0
  2040. data/ext/libuv/test/test-tcp-flags.c +52 -0
  2041. data/ext/libuv/test/test-tcp-oob.c +146 -0
  2042. data/ext/libuv/test/test-tcp-open.c +400 -0
  2043. data/ext/libuv/test/test-tcp-read-stop.c +76 -0
  2044. data/ext/libuv/test/test-tcp-shutdown-after-write.c +138 -0
  2045. data/ext/libuv/test/test-tcp-try-write-error.c +109 -0
  2046. data/ext/libuv/test/test-tcp-try-write.c +135 -0
  2047. data/ext/libuv/test/test-tcp-unexpected-read.c +117 -0
  2048. data/ext/libuv/test/test-tcp-write-after-connect.c +72 -0
  2049. data/ext/libuv/test/test-tcp-write-fail.c +115 -0
  2050. data/ext/libuv/test/test-tcp-write-queue-order.c +139 -0
  2051. data/ext/libuv/test/test-tcp-write-to-half-open-connection.c +141 -0
  2052. data/ext/libuv/test/test-tcp-writealot.c +180 -0
  2053. data/ext/libuv/test/test-thread-equal.c +45 -0
  2054. data/ext/libuv/test/test-thread.c +286 -0
  2055. data/ext/libuv/test/test-threadpool-cancel.c +349 -0
  2056. data/ext/libuv/test/test-threadpool.c +76 -0
  2057. data/ext/libuv/test/test-timer-again.c +141 -0
  2058. data/ext/libuv/test/test-timer-from-check.c +80 -0
  2059. data/ext/libuv/test/test-timer.c +343 -0
  2060. data/ext/libuv/test/test-tmpdir.c +82 -0
  2061. data/ext/libuv/test/test-tty-duplicate-key.c +321 -0
  2062. data/ext/libuv/test/test-tty.c +464 -0
  2063. data/ext/libuv/test/test-udp-alloc-cb-fail.c +196 -0
  2064. data/ext/libuv/test/test-udp-bind.c +93 -0
  2065. data/ext/libuv/test/test-udp-connect.c +182 -0
  2066. data/ext/libuv/test/test-udp-create-socket-early.c +135 -0
  2067. data/ext/libuv/test/test-udp-dgram-too-big.c +91 -0
  2068. data/ext/libuv/test/test-udp-ipv6.c +200 -0
  2069. data/ext/libuv/test/test-udp-multicast-interface.c +99 -0
  2070. data/ext/libuv/test/test-udp-multicast-interface6.c +103 -0
  2071. data/ext/libuv/test/test-udp-multicast-join.c +181 -0
  2072. data/ext/libuv/test/test-udp-multicast-join6.c +215 -0
  2073. data/ext/libuv/test/test-udp-multicast-ttl.c +94 -0
  2074. data/ext/libuv/test/test-udp-open.c +350 -0
  2075. data/ext/libuv/test/test-udp-options.c +156 -0
  2076. data/ext/libuv/test/test-udp-send-and-recv.c +212 -0
  2077. data/ext/libuv/test/test-udp-send-hang-loop.c +99 -0
  2078. data/ext/libuv/test/test-udp-send-immediate.c +148 -0
  2079. data/ext/libuv/test/test-udp-send-unreachable.c +150 -0
  2080. data/ext/libuv/test/test-udp-try-send.c +121 -0
  2081. data/ext/libuv/test/test-uname.c +69 -0
  2082. data/ext/libuv/test/test-walk-handles.c +77 -0
  2083. data/ext/libuv/test/test-watcher-cross-stop.c +111 -0
  2084. data/ext/libuv/test/test.gyp +293 -0
  2085. data/ext/libuv/tools/make_dist_html.py +124 -0
  2086. data/ext/libuv/tools/vswhere_usability_wrapper.cmd +33 -0
  2087. data/ext/libuv/uv.gyp +368 -0
  2088. data/ext/libuv/vcbuild.bat +184 -0
  2089. data/lib/mt-libuv/version.rb +1 -1
  2090. data/mt-libuv.gemspec +26 -26
  2091. metadata +2088 -1
@@ -0,0 +1,1800 @@
1
+ # Copyright (c) 2012 Google Inc. All rights reserved.
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+
5
+ """
6
+ This module contains classes that help to emulate xcodebuild behavior on top of
7
+ other build systems, such as make and ninja.
8
+ """
9
+
10
+ from __future__ import print_function
11
+
12
+ import copy
13
+ import gyp.common
14
+ import os
15
+ import os.path
16
+ import re
17
+ import shlex
18
+ import subprocess
19
+ import sys
20
+ import tempfile
21
+ from gyp.common import GypError
22
+
23
+ # Populated lazily by XcodeVersion, for efficiency, and to fix an issue when
24
+ # "xcodebuild" is called too quickly (it has been found to return incorrect
25
+ # version number).
26
+ XCODE_VERSION_CACHE = None
27
+
28
+ # Populated lazily by GetXcodeArchsDefault, to an |XcodeArchsDefault| instance
29
+ # corresponding to the installed version of Xcode.
30
+ XCODE_ARCHS_DEFAULT_CACHE = None
31
+
32
+
33
+ def XcodeArchsVariableMapping(archs, archs_including_64_bit=None):
34
+ """Constructs a dictionary with expansion for $(ARCHS_STANDARD) variable,
35
+ and optionally for $(ARCHS_STANDARD_INCLUDING_64_BIT)."""
36
+ mapping = {'$(ARCHS_STANDARD)': archs}
37
+ if archs_including_64_bit:
38
+ mapping['$(ARCHS_STANDARD_INCLUDING_64_BIT)'] = archs_including_64_bit
39
+ return mapping
40
+
41
+ class XcodeArchsDefault(object):
42
+ """A class to resolve ARCHS variable from xcode_settings, resolving Xcode
43
+ macros and implementing filtering by VALID_ARCHS. The expansion of macros
44
+ depends on the SDKROOT used ("macosx", "iphoneos", "iphonesimulator") and
45
+ on the version of Xcode.
46
+ """
47
+
48
+ # Match variable like $(ARCHS_STANDARD).
49
+ variable_pattern = re.compile(r'\$\([a-zA-Z_][a-zA-Z0-9_]*\)$')
50
+
51
+ def __init__(self, default, mac, iphonesimulator, iphoneos):
52
+ self._default = (default,)
53
+ self._archs = {'mac': mac, 'ios': iphoneos, 'iossim': iphonesimulator}
54
+
55
+ def _VariableMapping(self, sdkroot):
56
+ """Returns the dictionary of variable mapping depending on the SDKROOT."""
57
+ sdkroot = sdkroot.lower()
58
+ if 'iphoneos' in sdkroot:
59
+ return self._archs['ios']
60
+ elif 'iphonesimulator' in sdkroot:
61
+ return self._archs['iossim']
62
+ else:
63
+ return self._archs['mac']
64
+
65
+ def _ExpandArchs(self, archs, sdkroot):
66
+ """Expands variables references in ARCHS, and remove duplicates."""
67
+ variable_mapping = self._VariableMapping(sdkroot)
68
+ expanded_archs = []
69
+ for arch in archs:
70
+ if self.variable_pattern.match(arch):
71
+ variable = arch
72
+ try:
73
+ variable_expansion = variable_mapping[variable]
74
+ for arch in variable_expansion:
75
+ if arch not in expanded_archs:
76
+ expanded_archs.append(arch)
77
+ except KeyError as e:
78
+ print('Warning: Ignoring unsupported variable "%s".' % variable)
79
+ elif arch not in expanded_archs:
80
+ expanded_archs.append(arch)
81
+ return expanded_archs
82
+
83
+ def ActiveArchs(self, archs, valid_archs, sdkroot):
84
+ """Expands variables references in ARCHS, and filter by VALID_ARCHS if it
85
+ is defined (if not set, Xcode accept any value in ARCHS, otherwise, only
86
+ values present in VALID_ARCHS are kept)."""
87
+ expanded_archs = self._ExpandArchs(archs or self._default, sdkroot or '')
88
+ if valid_archs:
89
+ filtered_archs = []
90
+ for arch in expanded_archs:
91
+ if arch in valid_archs:
92
+ filtered_archs.append(arch)
93
+ expanded_archs = filtered_archs
94
+ return expanded_archs
95
+
96
+
97
+ def GetXcodeArchsDefault():
98
+ """Returns the |XcodeArchsDefault| object to use to expand ARCHS for the
99
+ installed version of Xcode. The default values used by Xcode for ARCHS
100
+ and the expansion of the variables depends on the version of Xcode used.
101
+
102
+ For all version anterior to Xcode 5.0 or posterior to Xcode 5.1 included
103
+ uses $(ARCHS_STANDARD) if ARCHS is unset, while Xcode 5.0 to 5.0.2 uses
104
+ $(ARCHS_STANDARD_INCLUDING_64_BIT). This variable was added to Xcode 5.0
105
+ and deprecated with Xcode 5.1.
106
+
107
+ For "macosx" SDKROOT, all version starting with Xcode 5.0 includes 64-bit
108
+ architecture as part of $(ARCHS_STANDARD) and default to only building it.
109
+
110
+ For "iphoneos" and "iphonesimulator" SDKROOT, 64-bit architectures are part
111
+ of $(ARCHS_STANDARD_INCLUDING_64_BIT) from Xcode 5.0. From Xcode 5.1, they
112
+ are also part of $(ARCHS_STANDARD).
113
+
114
+ All thoses rules are coded in the construction of the |XcodeArchsDefault|
115
+ object to use depending on the version of Xcode detected. The object is
116
+ for performance reason."""
117
+ global XCODE_ARCHS_DEFAULT_CACHE
118
+ if XCODE_ARCHS_DEFAULT_CACHE:
119
+ return XCODE_ARCHS_DEFAULT_CACHE
120
+ xcode_version, _ = XcodeVersion()
121
+ if xcode_version < '0500':
122
+ XCODE_ARCHS_DEFAULT_CACHE = XcodeArchsDefault(
123
+ '$(ARCHS_STANDARD)',
124
+ XcodeArchsVariableMapping(['i386']),
125
+ XcodeArchsVariableMapping(['i386']),
126
+ XcodeArchsVariableMapping(['armv7']))
127
+ elif xcode_version < '0510':
128
+ XCODE_ARCHS_DEFAULT_CACHE = XcodeArchsDefault(
129
+ '$(ARCHS_STANDARD_INCLUDING_64_BIT)',
130
+ XcodeArchsVariableMapping(['x86_64'], ['x86_64']),
131
+ XcodeArchsVariableMapping(['i386'], ['i386', 'x86_64']),
132
+ XcodeArchsVariableMapping(
133
+ ['armv7', 'armv7s'],
134
+ ['armv7', 'armv7s', 'arm64']))
135
+ else:
136
+ XCODE_ARCHS_DEFAULT_CACHE = XcodeArchsDefault(
137
+ '$(ARCHS_STANDARD)',
138
+ XcodeArchsVariableMapping(['x86_64'], ['x86_64']),
139
+ XcodeArchsVariableMapping(['i386', 'x86_64'], ['i386', 'x86_64']),
140
+ XcodeArchsVariableMapping(
141
+ ['armv7', 'armv7s', 'arm64'],
142
+ ['armv7', 'armv7s', 'arm64']))
143
+ return XCODE_ARCHS_DEFAULT_CACHE
144
+
145
+
146
+ class XcodeSettings(object):
147
+ """A class that understands the gyp 'xcode_settings' object."""
148
+
149
+ # Populated lazily by _SdkPath(). Shared by all XcodeSettings, so cached
150
+ # at class-level for efficiency.
151
+ _sdk_path_cache = {}
152
+ _platform_path_cache = {}
153
+ _sdk_root_cache = {}
154
+
155
+ # Populated lazily by GetExtraPlistItems(). Shared by all XcodeSettings, so
156
+ # cached at class-level for efficiency.
157
+ _plist_cache = {}
158
+
159
+ # Populated lazily by GetIOSPostbuilds. Shared by all XcodeSettings, so
160
+ # cached at class-level for efficiency.
161
+ _codesigning_key_cache = {}
162
+
163
+ def __init__(self, spec):
164
+ self.spec = spec
165
+
166
+ self.isIOS = False
167
+ self.mac_toolchain_dir = None
168
+ self.header_map_path = None
169
+
170
+ # Per-target 'xcode_settings' are pushed down into configs earlier by gyp.
171
+ # This means self.xcode_settings[config] always contains all settings
172
+ # for that config -- the per-target settings as well. Settings that are
173
+ # the same for all configs are implicitly per-target settings.
174
+ self.xcode_settings = {}
175
+ configs = spec['configurations']
176
+ for configname, config in configs.items():
177
+ self.xcode_settings[configname] = config.get('xcode_settings', {})
178
+ self._ConvertConditionalKeys(configname)
179
+ if self.xcode_settings[configname].get('IPHONEOS_DEPLOYMENT_TARGET',
180
+ None):
181
+ self.isIOS = True
182
+
183
+ # This is only non-None temporarily during the execution of some methods.
184
+ self.configname = None
185
+
186
+ # Used by _AdjustLibrary to match .a and .dylib entries in libraries.
187
+ self.library_re = re.compile(r'^lib([^/]+)\.(a|dylib)$')
188
+
189
+ def _ConvertConditionalKeys(self, configname):
190
+ """Converts or warns on conditional keys. Xcode supports conditional keys,
191
+ such as CODE_SIGN_IDENTITY[sdk=iphoneos*]. This is a partial implementation
192
+ with some keys converted while the rest force a warning."""
193
+ settings = self.xcode_settings[configname]
194
+ conditional_keys = [key for key in settings if key.endswith(']')]
195
+ for key in conditional_keys:
196
+ # If you need more, speak up at http://crbug.com/122592
197
+ if key.endswith("[sdk=iphoneos*]"):
198
+ if configname.endswith("iphoneos"):
199
+ new_key = key.split("[")[0]
200
+ settings[new_key] = settings[key]
201
+ else:
202
+ print('Warning: Conditional keys not implemented, ignoring:', \
203
+ ' '.join(conditional_keys))
204
+ del settings[key]
205
+
206
+ def _Settings(self):
207
+ assert self.configname
208
+ return self.xcode_settings[self.configname]
209
+
210
+ def _Test(self, test_key, cond_key, default):
211
+ return self._Settings().get(test_key, default) == cond_key
212
+
213
+ def _Appendf(self, lst, test_key, format_str, default=None):
214
+ if test_key in self._Settings():
215
+ lst.append(format_str % str(self._Settings()[test_key]))
216
+ elif default:
217
+ lst.append(format_str % str(default))
218
+
219
+ def _WarnUnimplemented(self, test_key):
220
+ if test_key in self._Settings():
221
+ print('Warning: Ignoring not yet implemented key "%s".' % test_key)
222
+
223
+ def IsBinaryOutputFormat(self, configname):
224
+ default = "binary" if self.isIOS else "xml"
225
+ format = self.xcode_settings[configname].get('INFOPLIST_OUTPUT_FORMAT',
226
+ default)
227
+ return format == "binary"
228
+
229
+ def IsIosFramework(self):
230
+ return self.spec['type'] == 'shared_library' and self._IsBundle() and \
231
+ self.isIOS
232
+
233
+ def _IsBundle(self):
234
+ return int(self.spec.get('mac_bundle', 0)) != 0 or self._IsXCTest() or \
235
+ self._IsXCUiTest()
236
+
237
+ def _IsXCTest(self):
238
+ return int(self.spec.get('mac_xctest_bundle', 0)) != 0
239
+
240
+ def _IsXCUiTest(self):
241
+ return int(self.spec.get('mac_xcuitest_bundle', 0)) != 0
242
+
243
+ def _IsIosAppExtension(self):
244
+ return int(self.spec.get('ios_app_extension', 0)) != 0
245
+
246
+ def _IsIosWatchKitExtension(self):
247
+ return int(self.spec.get('ios_watchkit_extension', 0)) != 0
248
+
249
+ def _IsIosWatchApp(self):
250
+ return int(self.spec.get('ios_watch_app', 0)) != 0
251
+
252
+ def GetFrameworkVersion(self):
253
+ """Returns the framework version of the current target. Only valid for
254
+ bundles."""
255
+ assert self._IsBundle()
256
+ return self.GetPerTargetSetting('FRAMEWORK_VERSION', default='A')
257
+
258
+ def GetWrapperExtension(self):
259
+ """Returns the bundle extension (.app, .framework, .plugin, etc). Only
260
+ valid for bundles."""
261
+ assert self._IsBundle()
262
+ if self.spec['type'] in ('loadable_module', 'shared_library'):
263
+ default_wrapper_extension = {
264
+ 'loadable_module': 'bundle',
265
+ 'shared_library': 'framework',
266
+ }[self.spec['type']]
267
+ wrapper_extension = self.GetPerTargetSetting(
268
+ 'WRAPPER_EXTENSION', default=default_wrapper_extension)
269
+ return '.' + self.spec.get('product_extension', wrapper_extension)
270
+ elif self.spec['type'] == 'executable':
271
+ if self._IsIosAppExtension() or self._IsIosWatchKitExtension():
272
+ return '.' + self.spec.get('product_extension', 'appex')
273
+ else:
274
+ return '.' + self.spec.get('product_extension', 'app')
275
+ else:
276
+ assert False, "Don't know extension for '%s', target '%s'" % (
277
+ self.spec['type'], self.spec['target_name'])
278
+
279
+ def GetProductName(self):
280
+ """Returns PRODUCT_NAME."""
281
+ return self.spec.get('product_name', self.spec['target_name'])
282
+
283
+ def GetFullProductName(self):
284
+ """Returns FULL_PRODUCT_NAME."""
285
+ if self._IsBundle():
286
+ return self.GetWrapperName()
287
+ else:
288
+ return self._GetStandaloneBinaryPath()
289
+
290
+ def GetWrapperName(self):
291
+ """Returns the directory name of the bundle represented by this target.
292
+ Only valid for bundles."""
293
+ assert self._IsBundle()
294
+ return self.GetProductName() + self.GetWrapperExtension()
295
+
296
+ def GetBundleContentsFolderPath(self):
297
+ """Returns the qualified path to the bundle's contents folder. E.g.
298
+ Chromium.app/Contents or Foo.bundle/Versions/A. Only valid for bundles."""
299
+ if self.isIOS:
300
+ return self.GetWrapperName()
301
+ assert self._IsBundle()
302
+ if self.spec['type'] == 'shared_library':
303
+ return os.path.join(
304
+ self.GetWrapperName(), 'Versions', self.GetFrameworkVersion())
305
+ else:
306
+ # loadable_modules have a 'Contents' folder like executables.
307
+ return os.path.join(self.GetWrapperName(), 'Contents')
308
+
309
+ def GetBundleResourceFolder(self):
310
+ """Returns the qualified path to the bundle's resource folder. E.g.
311
+ Chromium.app/Contents/Resources. Only valid for bundles."""
312
+ assert self._IsBundle()
313
+ if self.isIOS:
314
+ return self.GetBundleContentsFolderPath()
315
+ return os.path.join(self.GetBundleContentsFolderPath(), 'Resources')
316
+
317
+ def GetBundleExecutableFolderPath(self):
318
+ """Returns the qualified path to the bundle's executables folder. E.g.
319
+ Chromium.app/Contents/MacOS. Only valid for bundles."""
320
+ assert self._IsBundle()
321
+ if self.spec['type'] in ('shared_library') or self.isIOS:
322
+ return self.GetBundleContentsFolderPath()
323
+ elif self.spec['type'] in ('executable', 'loadable_module'):
324
+ return os.path.join(self.GetBundleContentsFolderPath(), 'MacOS')
325
+
326
+ def GetBundleJavaFolderPath(self):
327
+ """Returns the qualified path to the bundle's Java resource folder.
328
+ E.g. Chromium.app/Contents/Resources/Java. Only valid for bundles."""
329
+ assert self._IsBundle()
330
+ return os.path.join(self.GetBundleResourceFolder(), 'Java')
331
+
332
+ def GetBundleFrameworksFolderPath(self):
333
+ """Returns the qualified path to the bundle's frameworks folder. E.g,
334
+ Chromium.app/Contents/Frameworks. Only valid for bundles."""
335
+ assert self._IsBundle()
336
+ return os.path.join(self.GetBundleContentsFolderPath(), 'Frameworks')
337
+
338
+ def GetBundleSharedFrameworksFolderPath(self):
339
+ """Returns the qualified path to the bundle's frameworks folder. E.g,
340
+ Chromium.app/Contents/SharedFrameworks. Only valid for bundles."""
341
+ assert self._IsBundle()
342
+ return os.path.join(self.GetBundleContentsFolderPath(),
343
+ 'SharedFrameworks')
344
+
345
+ def GetBundleSharedSupportFolderPath(self):
346
+ """Returns the qualified path to the bundle's shared support folder. E.g,
347
+ Chromium.app/Contents/SharedSupport. Only valid for bundles."""
348
+ assert self._IsBundle()
349
+ if self.spec['type'] == 'shared_library':
350
+ return self.GetBundleResourceFolder()
351
+ else:
352
+ return os.path.join(self.GetBundleContentsFolderPath(),
353
+ 'SharedSupport')
354
+
355
+ def GetBundlePlugInsFolderPath(self):
356
+ """Returns the qualified path to the bundle's plugins folder. E.g,
357
+ Chromium.app/Contents/PlugIns. Only valid for bundles."""
358
+ assert self._IsBundle()
359
+ return os.path.join(self.GetBundleContentsFolderPath(), 'PlugIns')
360
+
361
+ def GetBundleXPCServicesFolderPath(self):
362
+ """Returns the qualified path to the bundle's XPC services folder. E.g,
363
+ Chromium.app/Contents/XPCServices. Only valid for bundles."""
364
+ assert self._IsBundle()
365
+ return os.path.join(self.GetBundleContentsFolderPath(), 'XPCServices')
366
+
367
+ def GetBundlePlistPath(self):
368
+ """Returns the qualified path to the bundle's plist file. E.g.
369
+ Chromium.app/Contents/Info.plist. Only valid for bundles."""
370
+ assert self._IsBundle()
371
+ if self.spec['type'] in ('executable', 'loadable_module') or \
372
+ self.IsIosFramework():
373
+ return os.path.join(self.GetBundleContentsFolderPath(), 'Info.plist')
374
+ else:
375
+ return os.path.join(self.GetBundleContentsFolderPath(),
376
+ 'Resources', 'Info.plist')
377
+
378
+ def GetProductType(self):
379
+ """Returns the PRODUCT_TYPE of this target."""
380
+ if self._IsIosAppExtension():
381
+ assert self._IsBundle(), ('ios_app_extension flag requires mac_bundle '
382
+ '(target %s)' % self.spec['target_name'])
383
+ return 'com.apple.product-type.app-extension'
384
+ if self._IsIosWatchKitExtension():
385
+ assert self._IsBundle(), ('ios_watchkit_extension flag requires '
386
+ 'mac_bundle (target %s)' % self.spec['target_name'])
387
+ return 'com.apple.product-type.watchkit-extension'
388
+ if self._IsIosWatchApp():
389
+ assert self._IsBundle(), ('ios_watch_app flag requires mac_bundle '
390
+ '(target %s)' % self.spec['target_name'])
391
+ return 'com.apple.product-type.application.watchapp'
392
+ if self._IsXCUiTest():
393
+ assert self._IsBundle(), ('mac_xcuitest_bundle flag requires mac_bundle '
394
+ '(target %s)' % self.spec['target_name'])
395
+ return 'com.apple.product-type.bundle.ui-testing'
396
+ if self._IsBundle():
397
+ return {
398
+ 'executable': 'com.apple.product-type.application',
399
+ 'loadable_module': 'com.apple.product-type.bundle',
400
+ 'shared_library': 'com.apple.product-type.framework',
401
+ }[self.spec['type']]
402
+ else:
403
+ return {
404
+ 'executable': 'com.apple.product-type.tool',
405
+ 'loadable_module': 'com.apple.product-type.library.dynamic',
406
+ 'shared_library': 'com.apple.product-type.library.dynamic',
407
+ 'static_library': 'com.apple.product-type.library.static',
408
+ }[self.spec['type']]
409
+
410
+ def GetMachOType(self):
411
+ """Returns the MACH_O_TYPE of this target."""
412
+ # Weird, but matches Xcode.
413
+ if not self._IsBundle() and self.spec['type'] == 'executable':
414
+ return ''
415
+ return {
416
+ 'executable': 'mh_execute',
417
+ 'static_library': 'staticlib',
418
+ 'shared_library': 'mh_dylib',
419
+ 'loadable_module': 'mh_bundle',
420
+ }[self.spec['type']]
421
+
422
+ def _GetBundleBinaryPath(self):
423
+ """Returns the name of the bundle binary of by this target.
424
+ E.g. Chromium.app/Contents/MacOS/Chromium. Only valid for bundles."""
425
+ assert self._IsBundle()
426
+ return os.path.join(self.GetBundleExecutableFolderPath(), \
427
+ self.GetExecutableName())
428
+
429
+ def _GetStandaloneExecutableSuffix(self):
430
+ if 'product_extension' in self.spec:
431
+ return '.' + self.spec['product_extension']
432
+ return {
433
+ 'executable': '',
434
+ 'static_library': '.a',
435
+ 'shared_library': '.dylib',
436
+ 'loadable_module': '.so',
437
+ }[self.spec['type']]
438
+
439
+ def _GetStandaloneExecutablePrefix(self):
440
+ return self.spec.get('product_prefix', {
441
+ 'executable': '',
442
+ 'static_library': 'lib',
443
+ 'shared_library': 'lib',
444
+ # Non-bundled loadable_modules are called foo.so for some reason
445
+ # (that is, .so and no prefix) with the xcode build -- match that.
446
+ 'loadable_module': '',
447
+ }[self.spec['type']])
448
+
449
+ def _GetStandaloneBinaryPath(self):
450
+ """Returns the name of the non-bundle binary represented by this target.
451
+ E.g. hello_world. Only valid for non-bundles."""
452
+ assert not self._IsBundle()
453
+ assert self.spec['type'] in (
454
+ 'executable', 'shared_library', 'static_library', 'loadable_module'), (
455
+ 'Unexpected type %s' % self.spec['type'])
456
+ target = self.spec['target_name']
457
+ if self.spec['type'] == 'static_library':
458
+ if target[:3] == 'lib':
459
+ target = target[3:]
460
+ elif self.spec['type'] in ('loadable_module', 'shared_library'):
461
+ if target[:3] == 'lib':
462
+ target = target[3:]
463
+
464
+ target_prefix = self._GetStandaloneExecutablePrefix()
465
+ target = self.spec.get('product_name', target)
466
+ target_ext = self._GetStandaloneExecutableSuffix()
467
+ return target_prefix + target + target_ext
468
+
469
+ def GetExecutableName(self):
470
+ """Returns the executable name of the bundle represented by this target.
471
+ E.g. Chromium."""
472
+ if self._IsBundle():
473
+ return self.spec.get('product_name', self.spec['target_name'])
474
+ else:
475
+ return self._GetStandaloneBinaryPath()
476
+
477
+ def GetExecutablePath(self):
478
+ """Returns the qualified path to the primary executable of the bundle
479
+ represented by this target. E.g. Chromium.app/Contents/MacOS/Chromium."""
480
+ if self._IsBundle():
481
+ return self._GetBundleBinaryPath()
482
+ else:
483
+ return self._GetStandaloneBinaryPath()
484
+
485
+ def GetActiveArchs(self, configname):
486
+ """Returns the architectures this target should be built for."""
487
+ config_settings = self.xcode_settings[configname]
488
+ xcode_archs_default = GetXcodeArchsDefault()
489
+ return xcode_archs_default.ActiveArchs(
490
+ config_settings.get('ARCHS'),
491
+ config_settings.get('VALID_ARCHS'),
492
+ config_settings.get('SDKROOT'))
493
+
494
+ def _GetSdkVersionInfoItem(self, sdk, infoitem):
495
+ # xcodebuild requires Xcode and can't run on Command Line Tools-only
496
+ # systems from 10.7 onward.
497
+ # Since the CLT has no SDK paths anyway, returning None is the
498
+ # most sensible route and should still do the right thing.
499
+ try:
500
+ return GetStdout(['xcrun', '--sdk', sdk, infoitem])
501
+ except:
502
+ pass
503
+
504
+ def _SdkRoot(self, configname):
505
+ if configname is None:
506
+ configname = self.configname
507
+ return self.GetPerConfigSetting('SDKROOT', configname, default='')
508
+
509
+ def _XcodePlatformPath(self, configname=None):
510
+ sdk_root = self._SdkRoot(configname)
511
+ if sdk_root not in XcodeSettings._platform_path_cache:
512
+ platform_path = self._GetSdkVersionInfoItem(sdk_root,
513
+ '--show-sdk-platform-path')
514
+ XcodeSettings._platform_path_cache[sdk_root] = platform_path
515
+ return XcodeSettings._platform_path_cache[sdk_root]
516
+
517
+ def _SdkPath(self, configname=None):
518
+ sdk_root = self._SdkRoot(configname)
519
+ if sdk_root.startswith('/'):
520
+ return sdk_root
521
+ return self._XcodeSdkPath(sdk_root)
522
+
523
+ def _XcodeSdkPath(self, sdk_root):
524
+ if sdk_root not in XcodeSettings._sdk_path_cache:
525
+ sdk_path = self._GetSdkVersionInfoItem(sdk_root, '--show-sdk-path')
526
+ XcodeSettings._sdk_path_cache[sdk_root] = sdk_path
527
+ if sdk_root:
528
+ XcodeSettings._sdk_root_cache[sdk_path] = sdk_root
529
+ return XcodeSettings._sdk_path_cache[sdk_root]
530
+
531
+ def _AppendPlatformVersionMinFlags(self, lst):
532
+ self._Appendf(lst, 'MACOSX_DEPLOYMENT_TARGET', '-mmacosx-version-min=%s')
533
+ if 'IPHONEOS_DEPLOYMENT_TARGET' in self._Settings():
534
+ # TODO: Implement this better?
535
+ sdk_path_basename = os.path.basename(self._SdkPath())
536
+ if sdk_path_basename.lower().startswith('iphonesimulator'):
537
+ self._Appendf(lst, 'IPHONEOS_DEPLOYMENT_TARGET',
538
+ '-mios-simulator-version-min=%s')
539
+ else:
540
+ self._Appendf(lst, 'IPHONEOS_DEPLOYMENT_TARGET',
541
+ '-miphoneos-version-min=%s')
542
+
543
+ def GetCflags(self, configname, arch=None):
544
+ """Returns flags that need to be added to .c, .cc, .m, and .mm
545
+ compilations."""
546
+ # This functions (and the similar ones below) do not offer complete
547
+ # emulation of all xcode_settings keys. They're implemented on demand.
548
+
549
+ self.configname = configname
550
+ cflags = []
551
+
552
+ sdk_root = self._SdkPath()
553
+ if 'SDKROOT' in self._Settings() and sdk_root:
554
+ cflags.append('-isysroot %s' % sdk_root)
555
+
556
+ if self.header_map_path:
557
+ cflags.append('-I%s' % self.header_map_path)
558
+
559
+ if self._Test('CLANG_WARN_CONSTANT_CONVERSION', 'YES', default='NO'):
560
+ cflags.append('-Wconstant-conversion')
561
+
562
+ if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'):
563
+ cflags.append('-funsigned-char')
564
+
565
+ if self._Test('GCC_CW_ASM_SYNTAX', 'YES', default='YES'):
566
+ cflags.append('-fasm-blocks')
567
+
568
+ if 'GCC_DYNAMIC_NO_PIC' in self._Settings():
569
+ if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES':
570
+ cflags.append('-mdynamic-no-pic')
571
+ else:
572
+ pass
573
+ # TODO: In this case, it depends on the target. xcode passes
574
+ # mdynamic-no-pic by default for executable and possibly static lib
575
+ # according to mento
576
+
577
+ if self._Test('GCC_ENABLE_PASCAL_STRINGS', 'YES', default='YES'):
578
+ cflags.append('-mpascal-strings')
579
+
580
+ self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
581
+
582
+ if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
583
+ dbg_format = self._Settings().get('DEBUG_INFORMATION_FORMAT', 'dwarf')
584
+ if dbg_format == 'dwarf':
585
+ cflags.append('-gdwarf-2')
586
+ elif dbg_format == 'stabs':
587
+ raise NotImplementedError('stabs debug format is not supported yet.')
588
+ elif dbg_format == 'dwarf-with-dsym':
589
+ cflags.append('-gdwarf-2')
590
+ else:
591
+ raise NotImplementedError('Unknown debug format %s' % dbg_format)
592
+
593
+ if self._Settings().get('GCC_STRICT_ALIASING') == 'YES':
594
+ cflags.append('-fstrict-aliasing')
595
+ elif self._Settings().get('GCC_STRICT_ALIASING') == 'NO':
596
+ cflags.append('-fno-strict-aliasing')
597
+
598
+ if self._Test('GCC_SYMBOLS_PRIVATE_EXTERN', 'YES', default='NO'):
599
+ cflags.append('-fvisibility=hidden')
600
+
601
+ if self._Test('GCC_TREAT_WARNINGS_AS_ERRORS', 'YES', default='NO'):
602
+ cflags.append('-Werror')
603
+
604
+ if self._Test('GCC_WARN_ABOUT_MISSING_NEWLINE', 'YES', default='NO'):
605
+ cflags.append('-Wnewline-eof')
606
+
607
+ # In Xcode, this is only activated when GCC_COMPILER_VERSION is clang or
608
+ # llvm-gcc. It also requires a fairly recent libtool, and
609
+ # if the system clang isn't used, DYLD_LIBRARY_PATH needs to contain the
610
+ # path to the libLTO.dylib that matches the used clang.
611
+ if self._Test('LLVM_LTO', 'YES', default='NO'):
612
+ cflags.append('-flto')
613
+
614
+ self._AppendPlatformVersionMinFlags(cflags)
615
+
616
+ # TODO:
617
+ if self._Test('COPY_PHASE_STRIP', 'YES', default='NO'):
618
+ self._WarnUnimplemented('COPY_PHASE_STRIP')
619
+ self._WarnUnimplemented('GCC_DEBUGGING_SYMBOLS')
620
+ self._WarnUnimplemented('GCC_ENABLE_OBJC_EXCEPTIONS')
621
+
622
+ # TODO: This is exported correctly, but assigning to it is not supported.
623
+ self._WarnUnimplemented('MACH_O_TYPE')
624
+ self._WarnUnimplemented('PRODUCT_TYPE')
625
+
626
+ if arch is not None:
627
+ archs = [arch]
628
+ else:
629
+ assert self.configname
630
+ archs = self.GetActiveArchs(self.configname)
631
+ if len(archs) != 1:
632
+ # TODO: Supporting fat binaries will be annoying.
633
+ self._WarnUnimplemented('ARCHS')
634
+ archs = ['i386']
635
+ cflags.append('-arch ' + archs[0])
636
+
637
+ if archs[0] in ('i386', 'x86_64'):
638
+ if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
639
+ cflags.append('-msse3')
640
+ if self._Test('GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS', 'YES',
641
+ default='NO'):
642
+ cflags.append('-mssse3') # Note 3rd 's'.
643
+ if self._Test('GCC_ENABLE_SSE41_EXTENSIONS', 'YES', default='NO'):
644
+ cflags.append('-msse4.1')
645
+ if self._Test('GCC_ENABLE_SSE42_EXTENSIONS', 'YES', default='NO'):
646
+ cflags.append('-msse4.2')
647
+
648
+ cflags += self._Settings().get('WARNING_CFLAGS', [])
649
+
650
+ platform_root = self._XcodePlatformPath(configname)
651
+ if platform_root and self._IsXCTest():
652
+ cflags.append('-F' + platform_root + '/Developer/Library/Frameworks/')
653
+
654
+ if sdk_root:
655
+ framework_root = sdk_root
656
+ else:
657
+ framework_root = ''
658
+ config = self.spec['configurations'][self.configname]
659
+ framework_dirs = config.get('mac_framework_dirs', [])
660
+ for directory in framework_dirs:
661
+ cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
662
+
663
+ self.configname = None
664
+ return cflags
665
+
666
+ def GetCflagsC(self, configname):
667
+ """Returns flags that need to be added to .c, and .m compilations."""
668
+ self.configname = configname
669
+ cflags_c = []
670
+ if self._Settings().get('GCC_C_LANGUAGE_STANDARD', '') == 'ansi':
671
+ cflags_c.append('-ansi')
672
+ else:
673
+ self._Appendf(cflags_c, 'GCC_C_LANGUAGE_STANDARD', '-std=%s')
674
+ cflags_c += self._Settings().get('OTHER_CFLAGS', [])
675
+ self.configname = None
676
+ return cflags_c
677
+
678
+ def GetCflagsCC(self, configname):
679
+ """Returns flags that need to be added to .cc, and .mm compilations."""
680
+ self.configname = configname
681
+ cflags_cc = []
682
+
683
+ clang_cxx_language_standard = self._Settings().get(
684
+ 'CLANG_CXX_LANGUAGE_STANDARD')
685
+ # Note: Don't make c++0x to c++11 so that c++0x can be used with older
686
+ # clangs that don't understand c++11 yet (like Xcode 4.2's).
687
+ if clang_cxx_language_standard:
688
+ cflags_cc.append('-std=%s' % clang_cxx_language_standard)
689
+
690
+ self._Appendf(cflags_cc, 'CLANG_CXX_LIBRARY', '-stdlib=%s')
691
+
692
+ if self._Test('GCC_ENABLE_CPP_RTTI', 'NO', default='YES'):
693
+ cflags_cc.append('-fno-rtti')
694
+ if self._Test('GCC_ENABLE_CPP_EXCEPTIONS', 'NO', default='YES'):
695
+ cflags_cc.append('-fno-exceptions')
696
+ if self._Test('GCC_INLINES_ARE_PRIVATE_EXTERN', 'YES', default='NO'):
697
+ cflags_cc.append('-fvisibility-inlines-hidden')
698
+ if self._Test('GCC_THREADSAFE_STATICS', 'NO', default='YES'):
699
+ cflags_cc.append('-fno-threadsafe-statics')
700
+ # Note: This flag is a no-op for clang, it only has an effect for gcc.
701
+ if self._Test('GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO', 'NO', default='YES'):
702
+ cflags_cc.append('-Wno-invalid-offsetof')
703
+
704
+ other_ccflags = []
705
+
706
+ for flag in self._Settings().get('OTHER_CPLUSPLUSFLAGS', ['$(inherited)']):
707
+ # TODO: More general variable expansion. Missing in many other places too.
708
+ if flag in ('$inherited', '$(inherited)', '${inherited}'):
709
+ flag = '$OTHER_CFLAGS'
710
+ if flag in ('$OTHER_CFLAGS', '$(OTHER_CFLAGS)', '${OTHER_CFLAGS}'):
711
+ other_ccflags += self._Settings().get('OTHER_CFLAGS', [])
712
+ else:
713
+ other_ccflags.append(flag)
714
+ cflags_cc += other_ccflags
715
+
716
+ self.configname = None
717
+ return cflags_cc
718
+
719
+ def _AddObjectiveCGarbageCollectionFlags(self, flags):
720
+ gc_policy = self._Settings().get('GCC_ENABLE_OBJC_GC', 'unsupported')
721
+ if gc_policy == 'supported':
722
+ flags.append('-fobjc-gc')
723
+ elif gc_policy == 'required':
724
+ flags.append('-fobjc-gc-only')
725
+
726
+ def _AddObjectiveCARCFlags(self, flags):
727
+ if self._Test('CLANG_ENABLE_OBJC_ARC', 'YES', default='NO'):
728
+ flags.append('-fobjc-arc')
729
+ if self._Test('CLANG_ENABLE_OBJC_WEAK', 'YES', default='NO'):
730
+ flags.append('-fobjc-weak')
731
+
732
+ def _AddObjectiveCMissingPropertySynthesisFlags(self, flags):
733
+ if self._Test('CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS',
734
+ 'YES', default='NO'):
735
+ flags.append('-Wobjc-missing-property-synthesis')
736
+
737
+ def GetCflagsObjC(self, configname):
738
+ """Returns flags that need to be added to .m compilations."""
739
+ self.configname = configname
740
+ cflags_objc = []
741
+ self._AddObjectiveCGarbageCollectionFlags(cflags_objc)
742
+ self._AddObjectiveCARCFlags(cflags_objc)
743
+ self._AddObjectiveCMissingPropertySynthesisFlags(cflags_objc)
744
+ self.configname = None
745
+ return cflags_objc
746
+
747
+ def GetCflagsObjCC(self, configname):
748
+ """Returns flags that need to be added to .mm compilations."""
749
+ self.configname = configname
750
+ cflags_objcc = []
751
+ self._AddObjectiveCGarbageCollectionFlags(cflags_objcc)
752
+ self._AddObjectiveCARCFlags(cflags_objcc)
753
+ self._AddObjectiveCMissingPropertySynthesisFlags(cflags_objcc)
754
+ if self._Test('GCC_OBJC_CALL_CXX_CDTORS', 'YES', default='NO'):
755
+ cflags_objcc.append('-fobjc-call-cxx-cdtors')
756
+ self.configname = None
757
+ return cflags_objcc
758
+
759
+ def GetInstallNameBase(self):
760
+ """Return DYLIB_INSTALL_NAME_BASE for this target."""
761
+ # Xcode sets this for shared_libraries, and for nonbundled loadable_modules.
762
+ if (self.spec['type'] != 'shared_library' and
763
+ (self.spec['type'] != 'loadable_module' or self._IsBundle())):
764
+ return None
765
+ install_base = self.GetPerTargetSetting(
766
+ 'DYLIB_INSTALL_NAME_BASE',
767
+ default='/Library/Frameworks' if self._IsBundle() else '/usr/local/lib')
768
+ return install_base
769
+
770
+ def _StandardizePath(self, path):
771
+ """Do :standardizepath processing for path."""
772
+ # I'm not quite sure what :standardizepath does. Just call normpath(),
773
+ # but don't let @executable_path/../foo collapse to foo.
774
+ if '/' in path:
775
+ prefix, rest = '', path
776
+ if path.startswith('@'):
777
+ prefix, rest = path.split('/', 1)
778
+ rest = os.path.normpath(rest) # :standardizepath
779
+ path = os.path.join(prefix, rest)
780
+ return path
781
+
782
+ def GetInstallName(self):
783
+ """Return LD_DYLIB_INSTALL_NAME for this target."""
784
+ # Xcode sets this for shared_libraries, and for nonbundled loadable_modules.
785
+ if (self.spec['type'] != 'shared_library' and
786
+ (self.spec['type'] != 'loadable_module' or self._IsBundle())):
787
+ return None
788
+
789
+ default_install_name = \
790
+ '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)'
791
+ install_name = self.GetPerTargetSetting(
792
+ 'LD_DYLIB_INSTALL_NAME', default=default_install_name)
793
+
794
+ # Hardcode support for the variables used in chromium for now, to
795
+ # unblock people using the make build.
796
+ if '$' in install_name:
797
+ assert install_name in ('$(DYLIB_INSTALL_NAME_BASE:standardizepath)/'
798
+ '$(WRAPPER_NAME)/$(PRODUCT_NAME)', default_install_name), (
799
+ 'Variables in LD_DYLIB_INSTALL_NAME are not generally supported '
800
+ 'yet in target \'%s\' (got \'%s\')' %
801
+ (self.spec['target_name'], install_name))
802
+
803
+ install_name = install_name.replace(
804
+ '$(DYLIB_INSTALL_NAME_BASE:standardizepath)',
805
+ self._StandardizePath(self.GetInstallNameBase()))
806
+ if self._IsBundle():
807
+ # These are only valid for bundles, hence the |if|.
808
+ install_name = install_name.replace(
809
+ '$(WRAPPER_NAME)', self.GetWrapperName())
810
+ install_name = install_name.replace(
811
+ '$(PRODUCT_NAME)', self.GetProductName())
812
+ else:
813
+ assert '$(WRAPPER_NAME)' not in install_name
814
+ assert '$(PRODUCT_NAME)' not in install_name
815
+
816
+ install_name = install_name.replace(
817
+ '$(EXECUTABLE_PATH)', self.GetExecutablePath())
818
+ return install_name
819
+
820
+ def _MapLinkerFlagFilename(self, ldflag, gyp_to_build_path):
821
+ """Checks if ldflag contains a filename and if so remaps it from
822
+ gyp-directory-relative to build-directory-relative."""
823
+ # This list is expanded on demand.
824
+ # They get matched as:
825
+ # -exported_symbols_list file
826
+ # -Wl,exported_symbols_list file
827
+ # -Wl,exported_symbols_list,file
828
+ LINKER_FILE = r'(\S+)'
829
+ WORD = r'\S+'
830
+ linker_flags = [
831
+ ['-exported_symbols_list', LINKER_FILE], # Needed for NaCl.
832
+ ['-unexported_symbols_list', LINKER_FILE],
833
+ ['-reexported_symbols_list', LINKER_FILE],
834
+ ['-sectcreate', WORD, WORD, LINKER_FILE], # Needed for remoting.
835
+ ]
836
+ for flag_pattern in linker_flags:
837
+ regex = re.compile('(?:-Wl,)?' + '[ ,]'.join(flag_pattern))
838
+ m = regex.match(ldflag)
839
+ if m:
840
+ ldflag = ldflag[:m.start(1)] + gyp_to_build_path(m.group(1)) + \
841
+ ldflag[m.end(1):]
842
+ # Required for ffmpeg (no idea why they don't use LIBRARY_SEARCH_PATHS,
843
+ # TODO(thakis): Update ffmpeg.gyp):
844
+ if ldflag.startswith('-L'):
845
+ ldflag = '-L' + gyp_to_build_path(ldflag[len('-L'):])
846
+ return ldflag
847
+
848
+ def GetLdflags(self, configname, product_dir, gyp_to_build_path, arch=None):
849
+ """Returns flags that need to be passed to the linker.
850
+
851
+ Args:
852
+ configname: The name of the configuration to get ld flags for.
853
+ product_dir: The directory where products such static and dynamic
854
+ libraries are placed. This is added to the library search path.
855
+ gyp_to_build_path: A function that converts paths relative to the
856
+ current gyp file to paths relative to the build direcotry.
857
+ """
858
+ self.configname = configname
859
+ ldflags = []
860
+
861
+ # The xcode build is relative to a gyp file's directory, and OTHER_LDFLAGS
862
+ # can contain entries that depend on this. Explicitly absolutify these.
863
+ for ldflag in self._Settings().get('OTHER_LDFLAGS', []):
864
+ ldflags.append(self._MapLinkerFlagFilename(ldflag, gyp_to_build_path))
865
+
866
+ if self._Test('DEAD_CODE_STRIPPING', 'YES', default='NO'):
867
+ ldflags.append('-Wl,-dead_strip')
868
+
869
+ if self._Test('PREBINDING', 'YES', default='NO'):
870
+ ldflags.append('-Wl,-prebind')
871
+
872
+ self._Appendf(
873
+ ldflags, 'DYLIB_COMPATIBILITY_VERSION', '-compatibility_version %s')
874
+ self._Appendf(
875
+ ldflags, 'DYLIB_CURRENT_VERSION', '-current_version %s')
876
+
877
+ self._AppendPlatformVersionMinFlags(ldflags)
878
+
879
+ if 'SDKROOT' in self._Settings() and self._SdkPath():
880
+ ldflags.append('-isysroot ' + self._SdkPath())
881
+
882
+ for library_path in self._Settings().get('LIBRARY_SEARCH_PATHS', []):
883
+ ldflags.append('-L' + gyp_to_build_path(library_path))
884
+
885
+ if 'ORDER_FILE' in self._Settings():
886
+ ldflags.append('-Wl,-order_file ' +
887
+ '-Wl,' + gyp_to_build_path(
888
+ self._Settings()['ORDER_FILE']))
889
+
890
+ if arch is not None:
891
+ archs = [arch]
892
+ else:
893
+ assert self.configname
894
+ archs = self.GetActiveArchs(self.configname)
895
+ if len(archs) != 1:
896
+ # TODO: Supporting fat binaries will be annoying.
897
+ self._WarnUnimplemented('ARCHS')
898
+ archs = ['i386']
899
+ ldflags.append('-arch ' + archs[0])
900
+
901
+ # Xcode adds the product directory by default.
902
+ # Rewrite -L. to -L./ to work around http://www.openradar.me/25313838
903
+ ldflags.append('-L' + (product_dir if product_dir != '.' else './'))
904
+
905
+ install_name = self.GetInstallName()
906
+ if install_name and self.spec['type'] != 'loadable_module':
907
+ ldflags.append('-install_name ' + install_name.replace(' ', r'\ '))
908
+
909
+ for rpath in self._Settings().get('LD_RUNPATH_SEARCH_PATHS', []):
910
+ ldflags.append('-Wl,-rpath,' + rpath)
911
+
912
+ sdk_root = self._SdkPath()
913
+ if not sdk_root:
914
+ sdk_root = ''
915
+ config = self.spec['configurations'][self.configname]
916
+ framework_dirs = config.get('mac_framework_dirs', [])
917
+ for directory in framework_dirs:
918
+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
919
+
920
+ platform_root = self._XcodePlatformPath(configname)
921
+ if sdk_root and platform_root and self._IsXCTest():
922
+ ldflags.append('-F' + platform_root + '/Developer/Library/Frameworks/')
923
+ ldflags.append('-framework XCTest')
924
+
925
+ is_extension = self._IsIosAppExtension() or self._IsIosWatchKitExtension()
926
+ if sdk_root and is_extension:
927
+ # Adds the link flags for extensions. These flags are common for all
928
+ # extensions and provide loader and main function.
929
+ # These flags reflect the compilation options used by xcode to compile
930
+ # extensions.
931
+ if XcodeVersion()[0] < '0900':
932
+ ldflags.append('-lpkstart')
933
+ ldflags.append(sdk_root +
934
+ '/System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKit')
935
+ else:
936
+ ldflags.append('-e _NSExtensionMain')
937
+ ldflags.append('-fapplication-extension')
938
+
939
+ self._Appendf(ldflags, 'CLANG_CXX_LIBRARY', '-stdlib=%s')
940
+
941
+ self.configname = None
942
+ return ldflags
943
+
944
+ def GetLibtoolflags(self, configname):
945
+ """Returns flags that need to be passed to the static linker.
946
+
947
+ Args:
948
+ configname: The name of the configuration to get ld flags for.
949
+ """
950
+ self.configname = configname
951
+ libtoolflags = []
952
+
953
+ for libtoolflag in self._Settings().get('OTHER_LDFLAGS', []):
954
+ libtoolflags.append(libtoolflag)
955
+ # TODO(thakis): ARCHS?
956
+
957
+ self.configname = None
958
+ return libtoolflags
959
+
960
+ def GetPerTargetSettings(self):
961
+ """Gets a list of all the per-target settings. This will only fetch keys
962
+ whose values are the same across all configurations."""
963
+ first_pass = True
964
+ result = {}
965
+ for configname in sorted(self.xcode_settings.keys()):
966
+ if first_pass:
967
+ result = dict(self.xcode_settings[configname])
968
+ first_pass = False
969
+ else:
970
+ for key, value in self.xcode_settings[configname].items():
971
+ if key not in result:
972
+ continue
973
+ elif result[key] != value:
974
+ del result[key]
975
+ return result
976
+
977
+ def GetPerConfigSetting(self, setting, configname, default=None):
978
+ if configname in self.xcode_settings:
979
+ return self.xcode_settings[configname].get(setting, default)
980
+ else:
981
+ return self.GetPerTargetSetting(setting, default)
982
+
983
+ def GetPerTargetSetting(self, setting, default=None):
984
+ """Tries to get xcode_settings.setting from spec. Assumes that the setting
985
+ has the same value in all configurations and throws otherwise."""
986
+ is_first_pass = True
987
+ result = None
988
+ for configname in sorted(self.xcode_settings.keys()):
989
+ if is_first_pass:
990
+ result = self.xcode_settings[configname].get(setting, None)
991
+ is_first_pass = False
992
+ else:
993
+ assert result == self.xcode_settings[configname].get(setting, None), (
994
+ "Expected per-target setting for '%s', got per-config setting "
995
+ "(target %s)" % (setting, self.spec['target_name']))
996
+ if result is None:
997
+ return default
998
+ return result
999
+
1000
+ def _GetStripPostbuilds(self, configname, output_binary, quiet):
1001
+ """Returns a list of shell commands that contain the shell commands
1002
+ neccessary to strip this target's binary. These should be run as postbuilds
1003
+ before the actual postbuilds run."""
1004
+ self.configname = configname
1005
+
1006
+ result = []
1007
+ if (self._Test('DEPLOYMENT_POSTPROCESSING', 'YES', default='NO') and
1008
+ self._Test('STRIP_INSTALLED_PRODUCT', 'YES', default='NO')):
1009
+
1010
+ default_strip_style = 'debugging'
1011
+ if ((self.spec['type'] == 'loadable_module' or self._IsIosAppExtension())
1012
+ and self._IsBundle()):
1013
+ default_strip_style = 'non-global'
1014
+ elif self.spec['type'] == 'executable':
1015
+ default_strip_style = 'all'
1016
+
1017
+ strip_style = self._Settings().get('STRIP_STYLE', default_strip_style)
1018
+ strip_flags = {
1019
+ 'all': '',
1020
+ 'non-global': '-x',
1021
+ 'debugging': '-S',
1022
+ }[strip_style]
1023
+
1024
+ explicit_strip_flags = self._Settings().get('STRIPFLAGS', '')
1025
+ if explicit_strip_flags:
1026
+ strip_flags += ' ' + _NormalizeEnvVarReferences(explicit_strip_flags)
1027
+
1028
+ if not quiet:
1029
+ result.append('echo STRIP\\(%s\\)' % self.spec['target_name'])
1030
+ result.append('strip %s %s' % (strip_flags, output_binary))
1031
+
1032
+ self.configname = None
1033
+ return result
1034
+
1035
+ def _GetDebugInfoPostbuilds(self, configname, output, output_binary, quiet):
1036
+ """Returns a list of shell commands that contain the shell commands
1037
+ neccessary to massage this target's debug information. These should be run
1038
+ as postbuilds before the actual postbuilds run."""
1039
+ self.configname = configname
1040
+
1041
+ # For static libraries, no dSYMs are created.
1042
+ result = []
1043
+ if (self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES') and
1044
+ self._Test(
1045
+ 'DEBUG_INFORMATION_FORMAT', 'dwarf-with-dsym', default='dwarf') and
1046
+ self.spec['type'] != 'static_library'):
1047
+ if not quiet:
1048
+ result.append('echo DSYMUTIL\\(%s\\)' % self.spec['target_name'])
1049
+ result.append('dsymutil %s -o %s' % (output_binary, output + '.dSYM'))
1050
+
1051
+ self.configname = None
1052
+ return result
1053
+
1054
+ def _GetTargetPostbuilds(self, configname, output, output_binary,
1055
+ quiet=False):
1056
+ """Returns a list of shell commands that contain the shell commands
1057
+ to run as postbuilds for this target, before the actual postbuilds."""
1058
+ # dSYMs need to build before stripping happens.
1059
+ return (
1060
+ self._GetDebugInfoPostbuilds(configname, output, output_binary, quiet) +
1061
+ self._GetStripPostbuilds(configname, output_binary, quiet))
1062
+
1063
+ def _GetIOSPostbuilds(self, configname, output_binary):
1064
+ """Return a shell command to codesign the iOS output binary so it can
1065
+ be deployed to a device. This should be run as the very last step of the
1066
+ build."""
1067
+ if not (self.isIOS and
1068
+ (self.spec['type'] == 'executable' or self._IsXCTest()) or
1069
+ self.IsIosFramework()):
1070
+ return []
1071
+
1072
+ postbuilds = []
1073
+ product_name = self.GetFullProductName()
1074
+ settings = self.xcode_settings[configname]
1075
+
1076
+ # Xcode expects XCTests to be copied into the TEST_HOST dir.
1077
+ if self._IsXCTest():
1078
+ source = os.path.join("${BUILT_PRODUCTS_DIR}", product_name)
1079
+ test_host = os.path.dirname(settings.get('TEST_HOST'));
1080
+ xctest_destination = os.path.join(test_host, 'PlugIns', product_name)
1081
+ postbuilds.extend(['ditto %s %s' % (source, xctest_destination)])
1082
+
1083
+ key = self._GetIOSCodeSignIdentityKey(settings)
1084
+ if not key:
1085
+ return postbuilds
1086
+
1087
+ # Warn for any unimplemented signing xcode keys.
1088
+ unimpl = ['OTHER_CODE_SIGN_FLAGS']
1089
+ unimpl = set(unimpl) & set(self.xcode_settings[configname].keys())
1090
+ if unimpl:
1091
+ print('Warning: Some codesign keys not implemented, ignoring: %s' % (
1092
+ ', '.join(sorted(unimpl))))
1093
+
1094
+ if self._IsXCTest():
1095
+ # For device xctests, Xcode copies two extra frameworks into $TEST_HOST.
1096
+ test_host = os.path.dirname(settings.get('TEST_HOST'));
1097
+ frameworks_dir = os.path.join(test_host, 'Frameworks')
1098
+ platform_root = self._XcodePlatformPath(configname)
1099
+ frameworks = \
1100
+ ['Developer/Library/PrivateFrameworks/IDEBundleInjection.framework',
1101
+ 'Developer/Library/Frameworks/XCTest.framework']
1102
+ for framework in frameworks:
1103
+ source = os.path.join(platform_root, framework)
1104
+ destination = os.path.join(frameworks_dir, os.path.basename(framework))
1105
+ postbuilds.extend(['ditto %s %s' % (source, destination)])
1106
+
1107
+ # Then re-sign everything with 'preserve=True'
1108
+ postbuilds.extend(['%s code-sign-bundle "%s" "%s" "%s" "%s" %s' % (
1109
+ os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key,
1110
+ settings.get('CODE_SIGN_ENTITLEMENTS', ''),
1111
+ settings.get('PROVISIONING_PROFILE', ''), destination, True)
1112
+ ])
1113
+ plugin_dir = os.path.join(test_host, 'PlugIns')
1114
+ targets = [os.path.join(plugin_dir, product_name), test_host]
1115
+ for target in targets:
1116
+ postbuilds.extend(['%s code-sign-bundle "%s" "%s" "%s" "%s" %s' % (
1117
+ os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key,
1118
+ settings.get('CODE_SIGN_ENTITLEMENTS', ''),
1119
+ settings.get('PROVISIONING_PROFILE', ''), target, True)
1120
+ ])
1121
+
1122
+ postbuilds.extend(['%s code-sign-bundle "%s" "%s" "%s" "%s" %s' % (
1123
+ os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key,
1124
+ settings.get('CODE_SIGN_ENTITLEMENTS', ''),
1125
+ settings.get('PROVISIONING_PROFILE', ''),
1126
+ os.path.join("${BUILT_PRODUCTS_DIR}", product_name), False)
1127
+ ])
1128
+ return postbuilds
1129
+
1130
+ def _GetIOSCodeSignIdentityKey(self, settings):
1131
+ identity = settings.get('CODE_SIGN_IDENTITY')
1132
+ if not identity:
1133
+ return None
1134
+ if identity not in XcodeSettings._codesigning_key_cache:
1135
+ output = subprocess.check_output(
1136
+ ['security', 'find-identity', '-p', 'codesigning', '-v'])
1137
+ for line in output.splitlines():
1138
+ line_decoded = line.decode('utf-8')
1139
+ if identity in line_decoded:
1140
+ fingerprint = line_decoded.split()[1]
1141
+ cache = XcodeSettings._codesigning_key_cache
1142
+ assert identity not in cache or fingerprint == cache[identity], (
1143
+ "Multiple codesigning fingerprints for identity: %s" % identity)
1144
+ XcodeSettings._codesigning_key_cache[identity] = fingerprint
1145
+ return XcodeSettings._codesigning_key_cache.get(identity, '')
1146
+
1147
+ def AddImplicitPostbuilds(self, configname, output, output_binary,
1148
+ postbuilds=[], quiet=False):
1149
+ """Returns a list of shell commands that should run before and after
1150
+ |postbuilds|."""
1151
+ assert output_binary is not None
1152
+ pre = self._GetTargetPostbuilds(configname, output, output_binary, quiet)
1153
+ post = self._GetIOSPostbuilds(configname, output_binary)
1154
+ return pre + postbuilds + post
1155
+
1156
+ def _AdjustLibrary(self, library, config_name=None):
1157
+ if library.endswith('.framework'):
1158
+ l = '-framework ' + os.path.splitext(os.path.basename(library))[0]
1159
+ else:
1160
+ m = self.library_re.match(library)
1161
+ if m:
1162
+ l = '-l' + m.group(1)
1163
+ else:
1164
+ l = library
1165
+
1166
+ sdk_root = self._SdkPath(config_name)
1167
+ if not sdk_root:
1168
+ sdk_root = ''
1169
+ # Xcode 7 started shipping with ".tbd" (text based stubs) files instead of
1170
+ # ".dylib" without providing a real support for them. What it does, for
1171
+ # "/usr/lib" libraries, is do "-L/usr/lib -lname" which is dependent on the
1172
+ # library order and cause collision when building Chrome.
1173
+ #
1174
+ # Instead substitude ".tbd" to ".dylib" in the generated project when the
1175
+ # following conditions are both true:
1176
+ # - library is referenced in the gyp file as "$(SDKROOT)/**/*.dylib",
1177
+ # - the ".dylib" file does not exists but a ".tbd" file do.
1178
+ library = l.replace('$(SDKROOT)', sdk_root)
1179
+ if l.startswith('$(SDKROOT)'):
1180
+ basename, ext = os.path.splitext(library)
1181
+ if ext == '.dylib' and not os.path.exists(library):
1182
+ tbd_library = basename + '.tbd'
1183
+ if os.path.exists(tbd_library):
1184
+ library = tbd_library
1185
+ return library
1186
+
1187
+ def AdjustLibraries(self, libraries, config_name=None):
1188
+ """Transforms entries like 'Cocoa.framework' in libraries into entries like
1189
+ '-framework Cocoa', 'libcrypto.dylib' into '-lcrypto', etc.
1190
+ """
1191
+ libraries = [self._AdjustLibrary(library, config_name)
1192
+ for library in libraries]
1193
+ return libraries
1194
+
1195
+ def _BuildMachineOSBuild(self):
1196
+ return GetStdout(['sw_vers', '-buildVersion'])
1197
+
1198
+ def _XcodeIOSDeviceFamily(self, configname):
1199
+ family = self.xcode_settings[configname].get('TARGETED_DEVICE_FAMILY', '1')
1200
+ return [int(x) for x in family.split(',')]
1201
+
1202
+ def GetExtraPlistItems(self, configname=None):
1203
+ """Returns a dictionary with extra items to insert into Info.plist."""
1204
+ if configname not in XcodeSettings._plist_cache:
1205
+ cache = {}
1206
+ cache['BuildMachineOSBuild'] = self._BuildMachineOSBuild()
1207
+
1208
+ xcode, xcode_build = XcodeVersion()
1209
+ cache['DTXcode'] = xcode
1210
+ cache['DTXcodeBuild'] = xcode_build
1211
+ compiler = self.xcode_settings[configname].get('GCC_VERSION')
1212
+ if compiler is not None:
1213
+ cache['DTCompiler'] = compiler
1214
+
1215
+ sdk_root = self._SdkRoot(configname)
1216
+ if not sdk_root:
1217
+ sdk_root = self._DefaultSdkRoot()
1218
+ sdk_version = self._GetSdkVersionInfoItem(sdk_root, '--show-sdk-version')
1219
+ cache['DTSDKName'] = sdk_root + (sdk_version or '')
1220
+ if xcode >= '0720':
1221
+ cache['DTSDKBuild'] = self._GetSdkVersionInfoItem(
1222
+ sdk_root, '--show-sdk-build-version')
1223
+ elif xcode >= '0430':
1224
+ cache['DTSDKBuild'] = sdk_version
1225
+ else:
1226
+ cache['DTSDKBuild'] = cache['BuildMachineOSBuild']
1227
+
1228
+ if self.isIOS:
1229
+ cache['MinimumOSVersion'] = self.xcode_settings[configname].get(
1230
+ 'IPHONEOS_DEPLOYMENT_TARGET')
1231
+ cache['DTPlatformName'] = sdk_root
1232
+ cache['DTPlatformVersion'] = sdk_version
1233
+
1234
+ if configname.endswith("iphoneos"):
1235
+ cache['CFBundleSupportedPlatforms'] = ['iPhoneOS']
1236
+ cache['DTPlatformBuild'] = cache['DTSDKBuild']
1237
+ else:
1238
+ cache['CFBundleSupportedPlatforms'] = ['iPhoneSimulator']
1239
+ # This is weird, but Xcode sets DTPlatformBuild to an empty field
1240
+ # for simulator builds.
1241
+ cache['DTPlatformBuild'] = ""
1242
+ XcodeSettings._plist_cache[configname] = cache
1243
+
1244
+ # Include extra plist items that are per-target, not per global
1245
+ # XcodeSettings.
1246
+ items = dict(XcodeSettings._plist_cache[configname])
1247
+ if self.isIOS:
1248
+ items['UIDeviceFamily'] = self._XcodeIOSDeviceFamily(configname)
1249
+ return items
1250
+
1251
+ def _DefaultSdkRoot(self):
1252
+ """Returns the default SDKROOT to use.
1253
+
1254
+ Prior to version 5.0.0, if SDKROOT was not explicitly set in the Xcode
1255
+ project, then the environment variable was empty. Starting with this
1256
+ version, Xcode uses the name of the newest SDK installed.
1257
+ """
1258
+ xcode_version, xcode_build = XcodeVersion()
1259
+ if xcode_version < '0500':
1260
+ return ''
1261
+ default_sdk_path = self._XcodeSdkPath('')
1262
+ default_sdk_root = XcodeSettings._sdk_root_cache.get(default_sdk_path)
1263
+ if default_sdk_root:
1264
+ return default_sdk_root
1265
+ try:
1266
+ all_sdks = GetStdout(['xcodebuild', '-showsdks'])
1267
+ except:
1268
+ # If xcodebuild fails, there will be no valid SDKs
1269
+ return ''
1270
+ for line in all_sdks.splitlines():
1271
+ items = line.split()
1272
+ if len(items) >= 3 and items[-2] == '-sdk':
1273
+ sdk_root = items[-1]
1274
+ sdk_path = self._XcodeSdkPath(sdk_root)
1275
+ if sdk_path == default_sdk_path:
1276
+ return sdk_root
1277
+ return ''
1278
+
1279
+
1280
+ class MacPrefixHeader(object):
1281
+ """A class that helps with emulating Xcode's GCC_PREFIX_HEADER feature.
1282
+
1283
+ This feature consists of several pieces:
1284
+ * If GCC_PREFIX_HEADER is present, all compilations in that project get an
1285
+ additional |-include path_to_prefix_header| cflag.
1286
+ * If GCC_PRECOMPILE_PREFIX_HEADER is present too, then the prefix header is
1287
+ instead compiled, and all other compilations in the project get an
1288
+ additional |-include path_to_compiled_header| instead.
1289
+ + Compiled prefix headers have the extension gch. There is one gch file for
1290
+ every language used in the project (c, cc, m, mm), since gch files for
1291
+ different languages aren't compatible.
1292
+ + gch files themselves are built with the target's normal cflags, but they
1293
+ obviously don't get the |-include| flag. Instead, they need a -x flag that
1294
+ describes their language.
1295
+ + All o files in the target need to depend on the gch file, to make sure
1296
+ it's built before any o file is built.
1297
+
1298
+ This class helps with some of these tasks, but it needs help from the build
1299
+ system for writing dependencies to the gch files, for writing build commands
1300
+ for the gch files, and for figuring out the location of the gch files.
1301
+ """
1302
+ def __init__(self, xcode_settings,
1303
+ gyp_path_to_build_path, gyp_path_to_build_output):
1304
+ """If xcode_settings is None, all methods on this class are no-ops.
1305
+
1306
+ Args:
1307
+ gyp_path_to_build_path: A function that takes a gyp-relative path,
1308
+ and returns a path relative to the build directory.
1309
+ gyp_path_to_build_output: A function that takes a gyp-relative path and
1310
+ a language code ('c', 'cc', 'm', or 'mm'), and that returns a path
1311
+ to where the output of precompiling that path for that language
1312
+ should be placed (without the trailing '.gch').
1313
+ """
1314
+ # This doesn't support per-configuration prefix headers. Good enough
1315
+ # for now.
1316
+ self.header = None
1317
+ self.compile_headers = False
1318
+ if xcode_settings:
1319
+ self.header = xcode_settings.GetPerTargetSetting('GCC_PREFIX_HEADER')
1320
+ self.compile_headers = xcode_settings.GetPerTargetSetting(
1321
+ 'GCC_PRECOMPILE_PREFIX_HEADER', default='NO') != 'NO'
1322
+ self.compiled_headers = {}
1323
+ if self.header:
1324
+ if self.compile_headers:
1325
+ for lang in ['c', 'cc', 'm', 'mm']:
1326
+ self.compiled_headers[lang] = gyp_path_to_build_output(
1327
+ self.header, lang)
1328
+ self.header = gyp_path_to_build_path(self.header)
1329
+
1330
+ def _CompiledHeader(self, lang, arch):
1331
+ assert self.compile_headers
1332
+ h = self.compiled_headers[lang]
1333
+ if arch:
1334
+ h += '.' + arch
1335
+ return h
1336
+
1337
+ def GetInclude(self, lang, arch=None):
1338
+ """Gets the cflags to include the prefix header for language |lang|."""
1339
+ if self.compile_headers and lang in self.compiled_headers:
1340
+ return '-include %s' % self._CompiledHeader(lang, arch)
1341
+ elif self.header:
1342
+ return '-include %s' % self.header
1343
+ else:
1344
+ return ''
1345
+
1346
+ def _Gch(self, lang, arch):
1347
+ """Returns the actual file name of the prefix header for language |lang|."""
1348
+ assert self.compile_headers
1349
+ return self._CompiledHeader(lang, arch) + '.gch'
1350
+
1351
+ def GetObjDependencies(self, sources, objs, arch=None):
1352
+ """Given a list of source files and the corresponding object files, returns
1353
+ a list of (source, object, gch) tuples, where |gch| is the build-directory
1354
+ relative path to the gch file each object file depends on. |compilable[i]|
1355
+ has to be the source file belonging to |objs[i]|."""
1356
+ if not self.header or not self.compile_headers:
1357
+ return []
1358
+
1359
+ result = []
1360
+ for source, obj in zip(sources, objs):
1361
+ ext = os.path.splitext(source)[1]
1362
+ lang = {
1363
+ '.c': 'c',
1364
+ '.cpp': 'cc', '.cc': 'cc', '.cxx': 'cc',
1365
+ '.m': 'm',
1366
+ '.mm': 'mm',
1367
+ }.get(ext, None)
1368
+ if lang:
1369
+ result.append((source, obj, self._Gch(lang, arch)))
1370
+ return result
1371
+
1372
+ def GetPchBuildCommands(self, arch=None):
1373
+ """Returns [(path_to_gch, language_flag, language, header)].
1374
+ |path_to_gch| and |header| are relative to the build directory.
1375
+ """
1376
+ if not self.header or not self.compile_headers:
1377
+ return []
1378
+ return [
1379
+ (self._Gch('c', arch), '-x c-header', 'c', self.header),
1380
+ (self._Gch('cc', arch), '-x c++-header', 'cc', self.header),
1381
+ (self._Gch('m', arch), '-x objective-c-header', 'm', self.header),
1382
+ (self._Gch('mm', arch), '-x objective-c++-header', 'mm', self.header),
1383
+ ]
1384
+
1385
+
1386
+ def XcodeVersion():
1387
+ """Returns a tuple of version and build version of installed Xcode."""
1388
+ # `xcodebuild -version` output looks like
1389
+ # Xcode 4.6.3
1390
+ # Build version 4H1503
1391
+ # or like
1392
+ # Xcode 3.2.6
1393
+ # Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
1394
+ # BuildVersion: 10M2518
1395
+ # Convert that to '0463', '4H1503'.
1396
+ global XCODE_VERSION_CACHE
1397
+ if XCODE_VERSION_CACHE:
1398
+ return XCODE_VERSION_CACHE
1399
+ try:
1400
+ version_list = GetStdout(['xcodebuild', '-version']).splitlines()
1401
+ # In some circumstances xcodebuild exits 0 but doesn't return
1402
+ # the right results; for example, a user on 10.7 or 10.8 with
1403
+ # a bogus path set via xcode-select
1404
+ # In that case this may be a CLT-only install so fall back to
1405
+ # checking that version.
1406
+ if len(version_list) < 2:
1407
+ raise GypError("xcodebuild returned unexpected results")
1408
+ except:
1409
+ version = CLTVersion()
1410
+ if version:
1411
+ version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
1412
+ else:
1413
+ raise GypError("No Xcode or CLT version detected!")
1414
+ # The CLT has no build information, so we return an empty string.
1415
+ version_list = [version, '']
1416
+ version = version_list[0]
1417
+ build = version_list[-1]
1418
+ # Be careful to convert "4.2" to "0420":
1419
+ version = version.split()[-1].replace('.', '')
1420
+ version = (version + '0' * (3 - len(version))).zfill(4)
1421
+ if build:
1422
+ build = build.split()[-1]
1423
+ XCODE_VERSION_CACHE = (version, build)
1424
+ return XCODE_VERSION_CACHE
1425
+
1426
+
1427
+ # This function ported from the logic in Homebrew's CLT version check
1428
+ def CLTVersion():
1429
+ """Returns the version of command-line tools from pkgutil."""
1430
+ # pkgutil output looks like
1431
+ # package-id: com.apple.pkg.CLTools_Executables
1432
+ # version: 5.0.1.0.1.1382131676
1433
+ # volume: /
1434
+ # location: /
1435
+ # install-time: 1382544035
1436
+ # groups: com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg-group com.apple.DevToolsNonRelocatableShared.pkg-group
1437
+ STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
1438
+ FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI"
1439
+ MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables"
1440
+
1441
+ regex = re.compile('version: (?P<version>.+)')
1442
+ for key in [MAVERICKS_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID]:
1443
+ try:
1444
+ output = GetStdout(['/usr/sbin/pkgutil', '--pkg-info', key])
1445
+ return re.search(regex, output).groupdict()['version']
1446
+ except:
1447
+ continue
1448
+
1449
+
1450
+ def GetStdout(cmdlist):
1451
+ """Returns the content of standard output returned by invoking |cmdlist|.
1452
+ Raises |GypError| if the command return with a non-zero return code."""
1453
+ job = subprocess.Popen(cmdlist, stdout=subprocess.PIPE)
1454
+ out = job.communicate()[0]
1455
+ if job.returncode != 0:
1456
+ sys.stderr.write(out + b'\n')
1457
+ raise GypError('Error %d running %s' % (job.returncode, cmdlist[0]))
1458
+ return out.rstrip(b'\n').decode('utf-8')
1459
+
1460
+
1461
+ def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
1462
+ """Merges the global xcode_settings dictionary into each configuration of the
1463
+ target represented by spec. For keys that are both in the global and the local
1464
+ xcode_settings dict, the local key gets precendence.
1465
+ """
1466
+ # The xcode generator special-cases global xcode_settings and does something
1467
+ # that amounts to merging in the global xcode_settings into each local
1468
+ # xcode_settings dict.
1469
+ global_xcode_settings = global_dict.get('xcode_settings', {})
1470
+ for config in spec['configurations'].values():
1471
+ if 'xcode_settings' in config:
1472
+ new_settings = global_xcode_settings.copy()
1473
+ new_settings.update(config['xcode_settings'])
1474
+ config['xcode_settings'] = new_settings
1475
+
1476
+
1477
+ def IsMacBundle(flavor, spec):
1478
+ """Returns if |spec| should be treated as a bundle.
1479
+
1480
+ Bundles are directories with a certain subdirectory structure, instead of
1481
+ just a single file. Bundle rules do not produce a binary but also package
1482
+ resources into that directory."""
1483
+ is_mac_bundle = int(spec.get('mac_xctest_bundle', 0)) != 0 or \
1484
+ int(spec.get('mac_xcuitest_bundle', 0)) != 0 or \
1485
+ (int(spec.get('mac_bundle', 0)) != 0 and flavor == 'mac')
1486
+
1487
+ if is_mac_bundle:
1488
+ assert spec['type'] != 'none', (
1489
+ 'mac_bundle targets cannot have type none (target "%s")' %
1490
+ spec['target_name'])
1491
+ return is_mac_bundle
1492
+
1493
+
1494
+ def GetMacBundleResources(product_dir, xcode_settings, resources):
1495
+ """Yields (output, resource) pairs for every resource in |resources|.
1496
+ Only call this for mac bundle targets.
1497
+
1498
+ Args:
1499
+ product_dir: Path to the directory containing the output bundle,
1500
+ relative to the build directory.
1501
+ xcode_settings: The XcodeSettings of the current target.
1502
+ resources: A list of bundle resources, relative to the build directory.
1503
+ """
1504
+ dest = os.path.join(product_dir,
1505
+ xcode_settings.GetBundleResourceFolder())
1506
+ for res in resources:
1507
+ output = dest
1508
+
1509
+ # The make generator doesn't support it, so forbid it everywhere
1510
+ # to keep the generators more interchangable.
1511
+ assert ' ' not in res, (
1512
+ "Spaces in resource filenames not supported (%s)" % res)
1513
+
1514
+ # Split into (path,file).
1515
+ res_parts = os.path.split(res)
1516
+
1517
+ # Now split the path into (prefix,maybe.lproj).
1518
+ lproj_parts = os.path.split(res_parts[0])
1519
+ # If the resource lives in a .lproj bundle, add that to the destination.
1520
+ if lproj_parts[1].endswith('.lproj'):
1521
+ output = os.path.join(output, lproj_parts[1])
1522
+
1523
+ output = os.path.join(output, res_parts[1])
1524
+ # Compiled XIB files are referred to by .nib.
1525
+ if output.endswith('.xib'):
1526
+ output = os.path.splitext(output)[0] + '.nib'
1527
+ # Compiled storyboard files are referred to by .storyboardc.
1528
+ if output.endswith('.storyboard'):
1529
+ output = os.path.splitext(output)[0] + '.storyboardc'
1530
+
1531
+ yield output, res
1532
+
1533
+
1534
+ def GetMacInfoPlist(product_dir, xcode_settings, gyp_path_to_build_path):
1535
+ """Returns (info_plist, dest_plist, defines, extra_env), where:
1536
+ * |info_plist| is the source plist path, relative to the
1537
+ build directory,
1538
+ * |dest_plist| is the destination plist path, relative to the
1539
+ build directory,
1540
+ * |defines| is a list of preprocessor defines (empty if the plist
1541
+ shouldn't be preprocessed,
1542
+ * |extra_env| is a dict of env variables that should be exported when
1543
+ invoking |mac_tool copy-info-plist|.
1544
+
1545
+ Only call this for mac bundle targets.
1546
+
1547
+ Args:
1548
+ product_dir: Path to the directory containing the output bundle,
1549
+ relative to the build directory.
1550
+ xcode_settings: The XcodeSettings of the current target.
1551
+ gyp_to_build_path: A function that converts paths relative to the
1552
+ current gyp file to paths relative to the build direcotry.
1553
+ """
1554
+ info_plist = xcode_settings.GetPerTargetSetting('INFOPLIST_FILE')
1555
+ if not info_plist:
1556
+ return None, None, [], {}
1557
+
1558
+ # The make generator doesn't support it, so forbid it everywhere
1559
+ # to keep the generators more interchangable.
1560
+ assert ' ' not in info_plist, (
1561
+ "Spaces in Info.plist filenames not supported (%s)" % info_plist)
1562
+
1563
+ info_plist = gyp_path_to_build_path(info_plist)
1564
+
1565
+ # If explicitly set to preprocess the plist, invoke the C preprocessor and
1566
+ # specify any defines as -D flags.
1567
+ if xcode_settings.GetPerTargetSetting(
1568
+ 'INFOPLIST_PREPROCESS', default='NO') == 'YES':
1569
+ # Create an intermediate file based on the path.
1570
+ defines = shlex.split(xcode_settings.GetPerTargetSetting(
1571
+ 'INFOPLIST_PREPROCESSOR_DEFINITIONS', default=''))
1572
+ else:
1573
+ defines = []
1574
+
1575
+ dest_plist = os.path.join(product_dir, xcode_settings.GetBundlePlistPath())
1576
+ extra_env = xcode_settings.GetPerTargetSettings()
1577
+
1578
+ return info_plist, dest_plist, defines, extra_env
1579
+
1580
+
1581
+ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
1582
+ additional_settings=None):
1583
+ """Return the environment variables that Xcode would set. See
1584
+ http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW153
1585
+ for a full list.
1586
+
1587
+ Args:
1588
+ xcode_settings: An XcodeSettings object. If this is None, this function
1589
+ returns an empty dict.
1590
+ built_products_dir: Absolute path to the built products dir.
1591
+ srcroot: Absolute path to the source root.
1592
+ configuration: The build configuration name.
1593
+ additional_settings: An optional dict with more values to add to the
1594
+ result.
1595
+ """
1596
+
1597
+ if not xcode_settings: return {}
1598
+
1599
+ # This function is considered a friend of XcodeSettings, so let it reach into
1600
+ # its implementation details.
1601
+ spec = xcode_settings.spec
1602
+
1603
+ # These are filled in on an as-needed basis.
1604
+ env = {
1605
+ 'BUILT_FRAMEWORKS_DIR' : built_products_dir,
1606
+ 'BUILT_PRODUCTS_DIR' : built_products_dir,
1607
+ 'CONFIGURATION' : configuration,
1608
+ 'PRODUCT_NAME' : xcode_settings.GetProductName(),
1609
+ # See /Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX\ Product\ Types.xcspec for FULL_PRODUCT_NAME
1610
+ 'SRCROOT' : srcroot,
1611
+ 'SOURCE_ROOT': '${SRCROOT}',
1612
+ # This is not true for static libraries, but currently the env is only
1613
+ # written for bundles:
1614
+ 'TARGET_BUILD_DIR' : built_products_dir,
1615
+ 'TEMP_DIR' : '${TMPDIR}',
1616
+ 'XCODE_VERSION_ACTUAL' : XcodeVersion()[0],
1617
+ }
1618
+ if xcode_settings.GetPerConfigSetting('SDKROOT', configuration):
1619
+ env['SDKROOT'] = xcode_settings._SdkPath(configuration)
1620
+ else:
1621
+ env['SDKROOT'] = ''
1622
+
1623
+ if xcode_settings.mac_toolchain_dir:
1624
+ env['DEVELOPER_DIR'] = xcode_settings.mac_toolchain_dir
1625
+
1626
+ if spec['type'] in (
1627
+ 'executable', 'static_library', 'shared_library', 'loadable_module'):
1628
+ env['EXECUTABLE_NAME'] = xcode_settings.GetExecutableName()
1629
+ env['EXECUTABLE_PATH'] = xcode_settings.GetExecutablePath()
1630
+ env['FULL_PRODUCT_NAME'] = xcode_settings.GetFullProductName()
1631
+ mach_o_type = xcode_settings.GetMachOType()
1632
+ if mach_o_type:
1633
+ env['MACH_O_TYPE'] = mach_o_type
1634
+ env['PRODUCT_TYPE'] = xcode_settings.GetProductType()
1635
+ if xcode_settings._IsBundle():
1636
+ # xcodeproj_file.py sets the same Xcode subfolder value for this as for
1637
+ # FRAMEWORKS_FOLDER_PATH so Xcode builds will actually use FFP's value.
1638
+ env['BUILT_FRAMEWORKS_DIR'] = \
1639
+ os.path.join(built_products_dir + os.sep \
1640
+ + xcode_settings.GetBundleFrameworksFolderPath())
1641
+ env['CONTENTS_FOLDER_PATH'] = \
1642
+ xcode_settings.GetBundleContentsFolderPath()
1643
+ env['EXECUTABLE_FOLDER_PATH'] = \
1644
+ xcode_settings.GetBundleExecutableFolderPath()
1645
+ env['UNLOCALIZED_RESOURCES_FOLDER_PATH'] = \
1646
+ xcode_settings.GetBundleResourceFolder()
1647
+ env['JAVA_FOLDER_PATH'] = xcode_settings.GetBundleJavaFolderPath()
1648
+ env['FRAMEWORKS_FOLDER_PATH'] = \
1649
+ xcode_settings.GetBundleFrameworksFolderPath()
1650
+ env['SHARED_FRAMEWORKS_FOLDER_PATH'] = \
1651
+ xcode_settings.GetBundleSharedFrameworksFolderPath()
1652
+ env['SHARED_SUPPORT_FOLDER_PATH'] = \
1653
+ xcode_settings.GetBundleSharedSupportFolderPath()
1654
+ env['PLUGINS_FOLDER_PATH'] = xcode_settings.GetBundlePlugInsFolderPath()
1655
+ env['XPCSERVICES_FOLDER_PATH'] = \
1656
+ xcode_settings.GetBundleXPCServicesFolderPath()
1657
+ env['INFOPLIST_PATH'] = xcode_settings.GetBundlePlistPath()
1658
+ env['WRAPPER_NAME'] = xcode_settings.GetWrapperName()
1659
+
1660
+ install_name = xcode_settings.GetInstallName()
1661
+ if install_name:
1662
+ env['LD_DYLIB_INSTALL_NAME'] = install_name
1663
+ install_name_base = xcode_settings.GetInstallNameBase()
1664
+ if install_name_base:
1665
+ env['DYLIB_INSTALL_NAME_BASE'] = install_name_base
1666
+ if XcodeVersion()[0] >= '0500' and not env.get('SDKROOT'):
1667
+ sdk_root = xcode_settings._SdkRoot(configuration)
1668
+ if not sdk_root:
1669
+ sdk_root = xcode_settings._XcodeSdkPath('')
1670
+ env['SDKROOT'] = sdk_root
1671
+
1672
+ if not additional_settings:
1673
+ additional_settings = {}
1674
+ else:
1675
+ # Flatten lists to strings.
1676
+ for k in additional_settings:
1677
+ if not isinstance(additional_settings[k], str):
1678
+ additional_settings[k] = ' '.join(additional_settings[k])
1679
+ additional_settings.update(env)
1680
+
1681
+ for k in additional_settings:
1682
+ additional_settings[k] = _NormalizeEnvVarReferences(additional_settings[k])
1683
+
1684
+ return additional_settings
1685
+
1686
+
1687
+ def _NormalizeEnvVarReferences(str):
1688
+ """Takes a string containing variable references in the form ${FOO}, $(FOO),
1689
+ or $FOO, and returns a string with all variable references in the form ${FOO}.
1690
+ """
1691
+ # $FOO -> ${FOO}
1692
+ str = re.sub(r'\$([a-zA-Z_][a-zA-Z0-9_]*)', r'${\1}', str)
1693
+
1694
+ # $(FOO) -> ${FOO}
1695
+ matches = re.findall(r'(\$\(([a-zA-Z0-9\-_]+)\))', str)
1696
+ for match in matches:
1697
+ to_replace, variable = match
1698
+ assert '$(' not in match, '$($(FOO)) variables not supported: ' + match
1699
+ str = str.replace(to_replace, '${' + variable + '}')
1700
+
1701
+ return str
1702
+
1703
+
1704
+ def ExpandEnvVars(string, expansions):
1705
+ """Expands ${VARIABLES}, $(VARIABLES), and $VARIABLES in string per the
1706
+ expansions list. If the variable expands to something that references
1707
+ another variable, this variable is expanded as well if it's in env --
1708
+ until no variables present in env are left."""
1709
+ for k, v in reversed(expansions):
1710
+ string = string.replace('${' + k + '}', v)
1711
+ string = string.replace('$(' + k + ')', v)
1712
+ string = string.replace('$' + k, v)
1713
+ return string
1714
+
1715
+
1716
+ def _TopologicallySortedEnvVarKeys(env):
1717
+ """Takes a dict |env| whose values are strings that can refer to other keys,
1718
+ for example env['foo'] = '$(bar) and $(baz)'. Returns a list L of all keys of
1719
+ env such that key2 is after key1 in L if env[key2] refers to env[key1].
1720
+
1721
+ Throws an Exception in case of dependency cycles.
1722
+ """
1723
+ # Since environment variables can refer to other variables, the evaluation
1724
+ # order is important. Below is the logic to compute the dependency graph
1725
+ # and sort it.
1726
+ regex = re.compile(r'\$\{([a-zA-Z0-9\-_]+)\}')
1727
+ def GetEdges(node):
1728
+ # Use a definition of edges such that user_of_variable -> used_varible.
1729
+ # This happens to be easier in this case, since a variable's
1730
+ # definition contains all variables it references in a single string.
1731
+ # We can then reverse the result of the topological sort at the end.
1732
+ # Since: reverse(topsort(DAG)) = topsort(reverse_edges(DAG))
1733
+ matches = set([v for v in regex.findall(env[node]) if v in env])
1734
+ for dependee in matches:
1735
+ assert '${' not in dependee, 'Nested variables not supported: ' + dependee
1736
+ return matches
1737
+
1738
+ try:
1739
+ # Topologically sort, and then reverse, because we used an edge definition
1740
+ # that's inverted from the expected result of this function (see comment
1741
+ # above).
1742
+ order = gyp.common.TopologicallySorted(env.keys(), GetEdges)
1743
+ order.reverse()
1744
+ return order
1745
+ except gyp.common.CycleError as e:
1746
+ raise GypError(
1747
+ 'Xcode environment variables are cyclically dependent: ' + str(e.nodes))
1748
+
1749
+
1750
+ def GetSortedXcodeEnv(xcode_settings, built_products_dir, srcroot,
1751
+ configuration, additional_settings=None):
1752
+ env = _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
1753
+ additional_settings)
1754
+ return [(key, env[key]) for key in _TopologicallySortedEnvVarKeys(env)]
1755
+
1756
+
1757
+ def GetSpecPostbuildCommands(spec, quiet=False):
1758
+ """Returns the list of postbuilds explicitly defined on |spec|, in a form
1759
+ executable by a shell."""
1760
+ postbuilds = []
1761
+ for postbuild in spec.get('postbuilds', []):
1762
+ if not quiet:
1763
+ postbuilds.append('echo POSTBUILD\\(%s\\) %s' % (
1764
+ spec['target_name'], postbuild['postbuild_name']))
1765
+ postbuilds.append(gyp.common.EncodePOSIXShellList(postbuild['action']))
1766
+ return postbuilds
1767
+
1768
+
1769
+ def _HasIOSTarget(targets):
1770
+ """Returns true if any target contains the iOS specific key
1771
+ IPHONEOS_DEPLOYMENT_TARGET."""
1772
+ for target_dict in targets.values():
1773
+ for config in target_dict['configurations'].values():
1774
+ if config.get('xcode_settings', {}).get('IPHONEOS_DEPLOYMENT_TARGET'):
1775
+ return True
1776
+ return False
1777
+
1778
+
1779
+ def _AddIOSDeviceConfigurations(targets):
1780
+ """Clone all targets and append -iphoneos to the name. Configure these targets
1781
+ to build for iOS devices and use correct architectures for those builds."""
1782
+ for target_dict in targets.values():
1783
+ toolset = target_dict['toolset']
1784
+ configs = target_dict['configurations']
1785
+
1786
+ for config_name, simulator_config_dict in dict(configs).items():
1787
+ iphoneos_config_dict = copy.deepcopy(simulator_config_dict)
1788
+ configs[config_name + '-iphoneos'] = iphoneos_config_dict
1789
+ configs[config_name + '-iphonesimulator'] = simulator_config_dict
1790
+ if toolset == 'target':
1791
+ simulator_config_dict['xcode_settings']['SDKROOT'] = 'iphonesimulator'
1792
+ iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
1793
+ return targets
1794
+
1795
+ def CloneConfigurationForDeviceAndEmulator(target_dicts):
1796
+ """If |target_dicts| contains any iOS targets, automatically create -iphoneos
1797
+ targets for iOS device builds."""
1798
+ if _HasIOSTarget(target_dicts):
1799
+ return _AddIOSDeviceConfigurations(target_dicts)
1800
+ return target_dicts