├── tools └── gyp │ ├── OWNERS │ ├── test │ ├── make │ │ ├── main.h │ │ ├── noload │ │ │ ├── lib │ │ │ │ ├── shared.h │ │ │ │ ├── shared.c │ │ │ │ └── shared.gyp │ │ │ └── main.c │ │ ├── main.cc │ │ └── dependencies.gyp │ ├── many-actions │ │ ├── file0 │ │ ├── file1 │ │ ├── file2 │ │ ├── file3 │ │ └── file4 │ ├── win │ │ ├── asm-files │ │ │ ├── b.s │ │ │ ├── c.S │ │ │ ├── hello.cc │ │ │ └── asm-files.gyp │ │ ├── command-quote │ │ │ ├── a.S │ │ │ ├── go.bat │ │ │ └── bat with spaces.bat │ │ ├── vs-macros │ │ │ ├── input.S │ │ │ ├── stuff.blah │ │ │ ├── hello.cc │ │ │ ├── do_stuff.py │ │ │ └── test_exists.py │ │ ├── batch-file-action │ │ │ ├── infile │ │ │ └── somecmd.bat │ │ ├── compiler-flags │ │ │ ├── subdir │ │ │ │ └── header.h │ │ │ ├── hello.cc │ │ │ ├── pdbname.cc │ │ │ ├── precomp.cc │ │ │ ├── force-include-files.cc │ │ │ ├── rtti-on.cc │ │ │ ├── warning-level1.cc │ │ │ ├── character-set-mbcs.cc │ │ │ ├── warning-as-error.cc │ │ │ ├── disable-specific-warnings.cc │ │ │ ├── function-level-linking.cc │ │ │ ├── runtime-checks.cc │ │ │ ├── force-include-files-with-precompiled.cc │ │ │ ├── treat-wchar-t-as-built-in-type1.cc │ │ │ ├── treat-wchar-t-as-built-in-type2.cc │ │ │ ├── warning-level4.cc │ │ │ ├── additional-include-dirs.cc │ │ │ ├── character-set-unicode.cc │ │ │ ├── warning-level2.cc │ │ │ ├── additional-options.cc │ │ │ ├── uninit.cc │ │ │ ├── buffer-security.cc │ │ │ ├── runtime-library-md.cc │ │ │ ├── runtime-library-mt.cc │ │ │ ├── runtime-library-mtd.cc │ │ │ ├── warning-level3.cc │ │ │ └── runtime-library-mdd.cc │ │ ├── rc-build │ │ │ ├── hello.h │ │ │ ├── subdir │ │ │ │ └── include.h │ │ │ ├── hello.ico │ │ │ └── small.ico │ │ ├── lib-flags │ │ │ ├── answer.h │ │ │ └── answer.cc │ │ ├── linker-flags │ │ │ ├── x.cc │ │ │ ├── y.cc │ │ │ ├── z.cc │ │ │ ├── a │ │ │ │ ├── x.cc │ │ │ │ └── z.cc │ │ │ ├── b │ │ │ │ └── y.cc │ │ │ ├── hello.cc │ │ │ ├── inline_test.h │ │ │ ├── library-directories-define.cc │ │ │ ├── deffile.def │ │ │ ├── opt-ref.cc │ │ │ ├── additional-deps.cc │ │ │ ├── delay-load.cc │ │ │ ├── library-adjust.cc │ │ │ ├── main-crt.c │ │ │ ├── subsystem-windows.cc │ │ │ ├── library-directories-reference.cc │ │ │ ├── deffile.cc │ │ │ ├── link-warning.cc │ │ │ ├── mapfile.cc │ │ │ ├── no-default-libs.gyp │ │ │ ├── unsupported-manifest.gyp │ │ │ ├── subdir │ │ │ │ └── library.gyp │ │ │ └── inline_test.cc │ │ ├── shard │ │ │ ├── hello1.cc │ │ │ ├── hello2.cc │ │ │ ├── hello3.cc │ │ │ └── hello4.cc │ │ ├── uldi │ │ │ ├── a.cc │ │ │ ├── b.cc │ │ │ └── main.cc │ │ ├── long-command-line │ │ │ ├── function.cc │ │ │ └── hello.cc │ │ ├── large-pdb │ │ │ ├── main.cc │ │ │ └── dllmain.cc │ │ ├── importlib │ │ │ ├── hello.cc │ │ │ └── has-exports.cc │ │ ├── precompiled │ │ │ ├── precomp.c │ │ │ └── hello2.c │ │ └── generator-output-different-drive │ │ │ ├── prog.c │ │ │ └── prog.gyp │ ├── mac │ │ ├── app-bundle │ │ │ ├── empty.c │ │ │ └── TestApp │ │ │ │ ├── English.lproj │ │ │ │ ├── InfoPlist.strings │ │ │ │ ├── InfoPlist-error.strings │ │ │ │ ├── utf-16be.strings │ │ │ │ └── utf-16le.strings │ │ │ │ ├── main.m │ │ │ │ └── TestAppAppDelegate.h │ │ ├── framework │ │ │ ├── empty.c │ │ │ └── TestFramework │ │ │ │ ├── English.lproj │ │ │ │ └── InfoPlist.strings │ │ │ │ ├── TestFramework_Prefix.pch │ │ │ │ └── ObjCVectorInternal.h │ │ ├── rebuild │ │ │ ├── empty.c │ │ │ ├── main.c │ │ │ └── delay-touch.sh │ │ ├── postbuild-copy-bundle │ │ │ ├── empty.c │ │ │ ├── copied.txt │ │ │ ├── resource_file.sb │ │ │ ├── main.c │ │ │ └── postbuild-copy-framework.sh │ │ ├── rpath │ │ │ ├── file.c │ │ │ └── main.c │ │ ├── xcode-env-order │ │ │ ├── file.ext1 │ │ │ ├── file.ext2 │ │ │ ├── file.ext3 │ │ │ └── main.c │ │ ├── xctest │ │ │ ├── resource.txt │ │ │ ├── MyClass.m │ │ │ └── MyClass.h │ │ ├── archs │ │ │ ├── empty_main.cc │ │ │ ├── header.h │ │ │ ├── file.mm │ │ │ ├── my_file.cc │ │ │ └── my_main_file.cc │ │ ├── bundle-resources │ │ │ ├── secret.txt │ │ │ ├── change.sh │ │ │ └── executable-file.sh │ │ ├── copy-dylib │ │ │ └── empty.c │ │ ├── installname │ │ │ ├── main.c │ │ │ └── file.c │ │ ├── ldflags-libtool │ │ │ └── file.c │ │ ├── objc-gc │ │ │ ├── c-file.c │ │ │ ├── cc-file.cc │ │ │ ├── needs-gc.m │ │ │ ├── needs-gc-mm.mm │ │ │ └── main.m │ │ ├── sourceless-module │ │ │ ├── empty.txt │ │ │ ├── empty.c │ │ │ └── fun.c │ │ ├── global-settings │ │ │ └── src │ │ │ │ ├── dir2 │ │ │ │ └── file.txt │ │ │ │ └── dir1 │ │ │ │ └── dir1.gyp │ │ ├── ldflags │ │ │ └── subdirectory │ │ │ │ ├── symbol_list.def │ │ │ │ ├── file.c │ │ │ │ └── Info.plist │ │ ├── prefixheader │ │ │ ├── header.h │ │ │ ├── file.c │ │ │ ├── file.cc │ │ │ ├── file.m │ │ │ └── file.mm │ │ ├── unicode-settings │ │ │ ├── file.cc │ │ │ └── test_bundle_display_name.sh │ │ ├── depend-on-bundle │ │ │ ├── bundle.c │ │ │ ├── executable.c │ │ │ └── English.lproj │ │ │ │ └── InfoPlist.strings │ │ ├── missing-cfbundlesignature │ │ │ ├── file.c │ │ │ └── Info.plist │ │ ├── postbuilds │ │ │ ├── copy.sh │ │ │ ├── subdirectory │ │ │ │ └── copied_file.txt │ │ │ ├── file.c │ │ │ ├── file_g.c │ │ │ └── file_h.c │ │ ├── strip │ │ │ ├── subdirectory │ │ │ │ ├── nested_file.c │ │ │ │ ├── test_reading_save_file_from_postbuild.sh │ │ │ │ └── nested_strip.saves │ │ │ └── strip.saves │ │ ├── sdkroot │ │ │ └── file.cc │ │ ├── libraries │ │ │ └── subdir │ │ │ │ ├── README.txt │ │ │ │ ├── mylib.c │ │ │ │ └── hello.cc │ │ ├── objc-arc │ │ │ ├── c-file.c │ │ │ ├── cc-file.cc │ │ │ ├── m-file.m │ │ │ ├── mm-file.mm │ │ │ ├── m-file-no-arc.m │ │ │ └── mm-file-no-arc.mm │ │ ├── cflags │ │ │ ├── cfile.c │ │ │ ├── mfile.m │ │ │ ├── ccfile.cc │ │ │ ├── cppfile.cpp │ │ │ ├── cxxfile.cxx │ │ │ ├── mmfile.mm │ │ │ ├── ccfile_withcflags.cc │ │ │ ├── mmfile_withcflags.mm │ │ │ ├── cppfile_withcflags.cpp │ │ │ └── cxxfile_withcflags.cxx │ │ ├── postbuild-static-library │ │ │ ├── empty.c │ │ │ └── postbuild-touch-file.sh │ │ ├── debuginfo │ │ │ └── file.c │ │ ├── postbuild-multiple-configurations │ │ │ ├── main.c │ │ │ └── postbuild-touch-file.sh │ │ ├── type_envvars │ │ │ └── file.c │ │ ├── infoplist-process │ │ │ └── main.c │ │ ├── postbuild-fail │ │ │ ├── postbuild-fail.sh │ │ │ ├── file.c │ │ │ ├── touch-dynamic.sh │ │ │ └── touch-static.sh │ │ ├── postbuild-defaults │ │ │ └── main.c │ │ ├── non-strs-flattened-to-env │ │ │ └── main.c │ │ ├── xcode-gcc │ │ │ ├── aliasing.cc │ │ │ ├── valid_c.c │ │ │ ├── warn_about_missing_newline.c │ │ │ ├── valid_cc.cc │ │ │ ├── valid_m.m │ │ │ └── valid_mm.mm │ │ ├── framework-headers │ │ │ ├── myframework.m │ │ │ └── myframework.h │ │ ├── action-envvars │ │ │ └── action │ │ │ │ └── action.sh │ │ ├── clang-cxx-language-standard │ │ │ └── c++11.cc │ │ ├── loadable-module │ │ │ └── module.c │ │ └── clang-cxx-library │ │ │ ├── libc++.cc │ │ │ └── libstdc++.cc │ ├── rules │ │ └── src │ │ │ ├── somefile.ext │ │ │ ├── external │ │ │ ├── file1.in │ │ │ └── file2.in │ │ │ ├── noaction │ │ │ └── file1.in │ │ │ ├── subdir2 │ │ │ ├── file1.in │ │ │ └── file2.in │ │ │ ├── subdir1 │ │ │ ├── function1.in │ │ │ ├── function2.in │ │ │ └── program.c │ │ │ ├── subdir3 │ │ │ ├── function3.in │ │ │ └── program.c │ │ │ ├── an_asm.S │ │ │ ├── as.bat │ │ │ ├── subdir4 │ │ │ └── asm-function.assem │ │ │ ├── copy-file.py │ │ │ └── rule.py │ ├── sanitize-rule-names │ │ ├── blah.S │ │ ├── hello.cc │ │ └── script.py │ ├── actions-none │ │ └── src │ │ │ ├── foo.cc │ │ │ └── fake_cross.py │ ├── copies │ │ └── src │ │ │ ├── file1 │ │ │ ├── file2 │ │ │ ├── directory │ │ │ ├── file3 │ │ │ ├── file4 │ │ │ └── subdir │ │ │ │ └── file5 │ │ │ ├── parentdir │ │ │ └── subdir │ │ │ │ └── file6 │ │ │ └── executable-file.sh │ ├── linux │ │ └── implicit-rpath │ │ │ ├── file.c │ │ │ └── main.c │ ├── no-cpp │ │ └── src │ │ │ ├── empty-main.c │ │ │ ├── call-f-main.c │ │ │ └── f.cc │ ├── actions-multiple │ │ └── src │ │ │ ├── input.txt │ │ │ ├── foo.c │ │ │ ├── copy.py │ │ │ └── filter.py │ ├── generator-output │ │ ├── copies │ │ │ ├── file1 │ │ │ ├── file2 │ │ │ ├── subdir │ │ │ │ ├── file3 │ │ │ │ ├── file4 │ │ │ │ └── copies-out │ │ │ │ │ └── README.txt │ │ │ └── copies-out │ │ │ │ └── README.txt │ │ ├── mac-bundle │ │ │ ├── app.order │ │ │ ├── header.h │ │ │ ├── main.c │ │ │ └── resource.sb │ │ ├── src │ │ │ ├── inc.h │ │ │ ├── inc1 │ │ │ │ └── include1.h │ │ │ ├── subdir2 │ │ │ │ ├── inc2 │ │ │ │ │ └── include2.h │ │ │ │ └── deeper │ │ │ │ │ ├── deeper.h │ │ │ │ │ └── deeper.c │ │ │ ├── subdir3 │ │ │ │ └── inc3 │ │ │ │ │ └── include3.h │ │ │ └── symroot.gypi │ │ ├── rules │ │ │ ├── subdir2 │ │ │ │ ├── file1.in0 │ │ │ │ ├── file2.in0 │ │ │ │ ├── file3.in1 │ │ │ │ ├── file4.in1 │ │ │ │ └── rules-out │ │ │ │ │ └── README.txt │ │ │ ├── subdir1 │ │ │ │ ├── define3.in0 │ │ │ │ ├── define4.in0 │ │ │ │ ├── function1.in1 │ │ │ │ └── function2.in1 │ │ │ └── copy-file.py │ │ └── actions │ │ │ ├── subdir1 │ │ │ ├── program.c │ │ │ └── actions-out │ │ │ │ └── README.txt │ │ │ └── subdir2 │ │ │ ├── actions-out │ │ │ └── README.txt │ │ │ └── make-file.py │ ├── external-cross-compile │ │ └── src │ │ │ ├── bogus2.c │ │ │ ├── test1.cc │ │ │ ├── test2.c │ │ │ ├── test3.cc │ │ │ ├── test4.c │ │ │ ├── bogus1.cc │ │ │ ├── tochar.py │ │ │ └── program.cc │ ├── include_dirs │ │ └── src │ │ │ ├── inc.h │ │ │ ├── subdir │ │ │ ├── inc.h │ │ │ ├── inc2 │ │ │ │ └── include2.h │ │ │ └── subdir_includes.c │ │ │ ├── inc1 │ │ │ └── include1.h │ │ │ ├── shadow1 │ │ │ └── shadow.h │ │ │ └── shadow2 │ │ │ └── shadow.h │ ├── rename │ │ └── filecase │ │ │ ├── file.c │ │ │ ├── test.gyp │ │ │ └── test-casesensitive.gyp │ ├── dependencies │ │ ├── b │ │ │ ├── b.c │ │ │ └── b3.c │ │ ├── c │ │ │ ├── d.c │ │ │ └── c.c │ │ ├── a.c │ │ ├── double_dependent.gyp │ │ ├── main.c │ │ └── lib_only.gyp │ ├── intermediate_dir │ │ └── src │ │ │ └── shared_infile.txt │ ├── variables │ │ ├── commands │ │ │ └── test.py │ │ ├── filelist │ │ │ ├── src │ │ │ │ └── dummy.py │ │ │ └── update_golden │ │ ├── variable-in-path │ │ │ └── C1 │ │ │ │ └── hello.cc │ │ └── latelate │ │ │ └── src │ │ │ └── program.cc │ ├── assembly │ │ └── src │ │ │ ├── lib1.c │ │ │ ├── as.bat │ │ │ ├── program.c │ │ │ ├── override_asm.asm │ │ │ └── lib1.S │ ├── ninja │ │ ├── s-needs-no-depfiles │ │ │ ├── empty.s │ │ │ └── s-needs-no-depfiles.gyp │ │ ├── solibs_avoid_relinking │ │ │ ├── main.cc │ │ │ └── solib.cc │ │ ├── chained-dependency │ │ │ └── chained.c │ │ ├── normalize-paths-win │ │ │ └── hello.cc │ │ ├── use-custom-environment-files │ │ │ └── use-custom-environment-files.cc │ │ └── action_dependencies │ │ │ └── src │ │ │ ├── a.c │ │ │ ├── c.c │ │ │ ├── b.h │ │ │ ├── a.h │ │ │ ├── c.h │ │ │ └── emit.py │ ├── rules-dirname │ │ └── src │ │ │ ├── subdir │ │ │ ├── a │ │ │ │ └── b │ │ │ │ │ ├── c.printvars │ │ │ │ │ └── c.gencc │ │ │ ├── foo │ │ │ │ └── bar │ │ │ │ │ ├── baz.printvars │ │ │ │ │ └── baz.gencc │ │ │ ├── main.cc │ │ │ └── printvars.py │ │ │ ├── copy-file.py │ │ │ └── actions.gyp │ ├── configurations │ │ ├── target_platform │ │ │ ├── left.c │ │ │ ├── right.c │ │ │ └── front.c │ │ ├── x64 │ │ │ └── configurations.c │ │ └── basics │ │ │ └── configurations.c │ ├── link-objects │ │ ├── extra.c │ │ └── base.c │ ├── home_dot_gyp │ │ ├── home │ │ │ └── .gyp │ │ │ │ └── include.gypi │ │ ├── home2 │ │ │ ├── .gyp │ │ │ │ └── include.gypi │ │ │ └── .gyp_new │ │ │ │ └── include.gypi │ │ └── src │ │ │ └── printfoo.c │ ├── library_dirs │ │ └── subdir │ │ │ ├── README.txt │ │ │ ├── mylib.cc │ │ │ ├── hello.cc │ │ │ └── mylib.h │ ├── builddir │ │ └── src │ │ │ ├── func1.c │ │ │ ├── func2.c │ │ │ ├── func3.c │ │ │ ├── func4.c │ │ │ ├── func5.c │ │ │ ├── prog1.c │ │ │ └── subdir2 │ │ │ ├── prog2.c │ │ │ └── subdir3 │ │ │ ├── prog3.c │ │ │ └── subdir4 │ │ │ ├── prog4.c │ │ │ └── subdir5 │ │ │ └── prog5.c │ ├── compilable │ │ └── src │ │ │ ├── lib1.hpp │ │ │ ├── lib1.cpp │ │ │ └── program.cpp │ ├── additional-targets │ │ └── src │ │ │ ├── dir1 │ │ │ ├── lib1.c │ │ │ └── emit.py │ │ │ └── all.gyp │ ├── same-source-file-name │ │ └── src │ │ │ ├── func.c │ │ │ ├── subdir1 │ │ │ └── func.c │ │ │ ├── subdir2 │ │ │ └── func.c │ │ │ ├── prog1.c │ │ │ └── prog2.c │ ├── actions │ │ ├── generated-header │ │ │ ├── main.cc │ │ │ └── action.py │ │ └── src │ │ │ ├── subdir1 │ │ │ └── program.c │ │ │ └── subdir2 │ │ │ └── make-file.py │ ├── same-gyp-name │ │ ├── src │ │ │ ├── subdir1 │ │ │ │ ├── main1.cc │ │ │ │ └── executable.gyp │ │ │ ├── subdir2 │ │ │ │ ├── main2.cc │ │ │ │ └── executable.gyp │ │ │ └── all.gyp │ │ └── library │ │ │ ├── one │ │ │ └── sub.gyp │ │ │ ├── two │ │ │ └── sub.gyp │ │ │ └── test.gyp │ ├── multiple-targets │ │ └── src │ │ │ ├── common.c │ │ │ ├── prog1.c │ │ │ └── prog2.c │ ├── standalone-static-library │ │ ├── mylib.c │ │ ├── prog.c │ │ └── invalid.gyp │ ├── rules-rebuild │ │ └── src │ │ │ ├── prog1.in │ │ │ ├── prog2.in │ │ │ └── main.c │ ├── dependency-copy │ │ └── src │ │ │ ├── file1.c │ │ │ └── file2.c │ ├── sibling │ │ └── src │ │ │ ├── prog1 │ │ │ ├── prog1.c │ │ │ └── prog1.gyp │ │ │ └── prog2 │ │ │ ├── prog2.c │ │ │ └── prog2.gyp │ ├── subdirectory │ │ └── src │ │ │ ├── prog1.c │ │ │ ├── subdir │ │ │ ├── prog2.c │ │ │ └── subdir2 │ │ │ │ └── prog3.c │ │ │ └── symroot.gypi │ ├── toplevel-dir │ │ └── src │ │ │ ├── sub1 │ │ │ └── prog1.c │ │ │ └── sub2 │ │ │ ├── prog2.c │ │ │ └── prog2.gyp │ ├── ios │ │ └── app-bundle │ │ │ └── TestApp │ │ │ ├── English.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── InfoPlist-error.strings │ │ │ ├── only-compile-in-32-bits.m │ │ │ └── only-compile-in-64-bits.m │ ├── relative │ │ └── foo │ │ │ ├── b │ │ │ ├── b.gyp │ │ │ └── b.cc │ │ │ └── a │ │ │ ├── a.cc │ │ │ ├── c │ │ │ ├── c.cc │ │ │ └── c.gyp │ │ │ └── a.gyp │ ├── module │ │ └── src │ │ │ ├── lib1.c │ │ │ └── lib2.c │ ├── msvs │ │ ├── buildevents │ │ │ └── main.cc │ │ ├── external_builder │ │ │ ├── hello.z │ │ │ ├── msbuild_action.py │ │ │ ├── external_builder.py │ │ │ ├── hello.cpp │ │ │ └── msbuild_rule.py │ │ ├── uldi2010 │ │ │ ├── hello2.c │ │ │ └── hello.c │ │ ├── list_excluded │ │ │ ├── hello_mac.cpp │ │ │ └── hello.cpp │ │ ├── props │ │ │ ├── AppName.vsprops │ │ │ └── hello.c │ │ ├── config_attrs │ │ │ └── hello.c │ │ ├── shared_output │ │ │ ├── hello.c │ │ │ └── there │ │ │ │ ├── there.c │ │ │ │ └── there.gyp │ │ └── missing_sources │ │ │ └── hello_missing.gyp │ ├── library │ │ └── src │ │ │ ├── lib1.c │ │ │ ├── lib2.c │ │ │ ├── lib1_moveable.c │ │ │ ├── lib2_moveable.c │ │ │ └── program.c │ ├── prune_targets │ │ ├── lib1.cc │ │ ├── lib2.cc │ │ ├── lib3.cc │ │ ├── lib_indirect.cc │ │ └── program.cc │ ├── errors │ │ ├── missing_targets.gyp │ │ ├── duplicate_targets.gyp │ │ ├── duplicate_basenames.gyp │ │ ├── duplicate_node.gyp │ │ └── missing_dep.gyp │ ├── compiler-override │ │ ├── my_cc.py │ │ ├── my_cxx.py │ │ ├── my_ld.py │ │ ├── test.c │ │ ├── cxxtest.cc │ │ └── compiler.gyp │ ├── target │ │ └── hello.c │ ├── hard_dependency │ │ └── src │ │ │ ├── a.c │ │ │ ├── b.c │ │ │ ├── d.c │ │ │ ├── c.h │ │ │ ├── c.c │ │ │ ├── b.h │ │ │ ├── a.h │ │ │ └── emit.py │ ├── rules-variables │ │ └── src │ │ │ ├── input_ext.c │ │ │ ├── input_name │ │ │ └── test.c │ │ │ ├── test.input_root.c │ │ │ ├── input_path │ │ │ └── subdir │ │ │ │ └── test.c │ │ │ └── subdir │ │ │ └── input_dirname.c │ ├── gyp-defines │ │ └── echo.py │ ├── hello │ │ ├── hello.c │ │ ├── hello2.c │ │ ├── hello.gyp │ │ └── hello2.gyp │ ├── toolsets │ │ ├── toolsets.cc │ │ ├── toolsets_shared.cc │ │ └── main.cc │ ├── standalone │ │ └── standalone.gyp │ ├── actions-bare │ │ └── src │ │ │ └── bare.py │ ├── build-option │ │ ├── hello.c │ │ └── hello.gyp │ ├── defines-escaping │ │ └── defines-escaping.c │ ├── same-rule-output-file-name │ │ └── src │ │ │ └── touch.py │ ├── actions-subdir │ │ └── src │ │ │ ├── make-file.py │ │ │ └── subdir │ │ │ └── make-subdir-file.py │ ├── same-target-name-different-directory │ │ └── src │ │ │ └── touch.py │ ├── self-dependency │ │ ├── self_dependency.gyp │ │ └── common.gypi │ ├── custom-generator │ │ └── test.gyp │ ├── cflags │ │ └── cflags.c │ ├── product │ │ └── hello.c │ ├── exclusion │ │ └── hello.c │ ├── same-target-name │ │ └── src │ │ │ ├── executable1.gyp │ │ │ ├── executable2.gyp │ │ │ └── all.gyp │ ├── cxxflags │ │ ├── cxxflags.gyp │ │ └── cxxflags.cc │ ├── restat │ │ └── src │ │ │ └── touch.py │ └── no-output │ │ └── src │ │ └── nooutput.gyp │ ├── .gitignore │ ├── pylib │ └── gyp │ │ └── generator │ │ └── __init__.py │ ├── gyp.bat │ ├── samples │ └── samples.bat │ ├── gyp │ ├── tools │ ├── Xcode │ │ └── README │ └── emacs │ │ └── run-unit-tests.sh │ ├── AUTHORS │ └── codereview.settings ├── Makefile ├── vendor ├── libuv │ ├── test │ │ └── fixtures │ │ │ ├── empty_file │ │ │ └── load_error.node │ ├── m4 │ │ └── .gitignore │ ├── src │ │ └── win │ │ │ └── fs.c │ └── libuv.pc.in ├── polarssl-1.3.3 │ ├── include │ │ ├── .gitignore │ │ └── CMakeLists.txt │ ├── tests │ │ ├── data_files │ │ │ ├── hash_file_4 │ │ │ ├── dir3 │ │ │ │ └── Readme │ │ │ ├── ec_pub.der │ │ │ ├── hash_file_1 │ │ │ ├── hash_file_2 │ │ │ ├── hash_file_3 │ │ │ ├── ec_prv.pk8.der │ │ │ ├── ec_prv.sec1.der │ │ │ ├── ec_prv.pk8.pw.der │ │ │ ├── format_pkcs12.fmt │ │ │ ├── pkcs8_pbe_sha1_3des.der │ │ │ ├── pkcs8_pbes2_pbkdf2_3des.der │ │ │ ├── ec_pub.pem │ │ │ ├── ec_224_pub.pem │ │ │ ├── ec_256_pub.pem │ │ │ ├── ec_bp256_pub.pem │ │ │ ├── mpi_10 │ │ │ ├── server3.key │ │ │ ├── ec_prv.sec1.pem │ │ │ ├── ec_224_prv.pem │ │ │ ├── ec_prv.pk8.pem │ │ │ ├── ec_384_pub.pem │ │ │ ├── cli2.key │ │ │ ├── ec_bp384_pub.pem │ │ │ ├── server5.key │ │ │ ├── server6.key │ │ │ ├── server7.key │ │ │ ├── ec_256_prv.pem │ │ │ ├── ec_bp256_prv.pem │ │ │ ├── ec_521_pub.pem │ │ │ ├── ec_bp512_pub.pem │ │ │ ├── ec_prv.sec1.pw.pem │ │ │ ├── format_gen.pub │ │ │ ├── ec_prv.pk8.pw.pem │ │ │ ├── test-ca2.key │ │ │ ├── ec_384_prv.pem │ │ │ ├── test-int-ca2.key │ │ │ ├── ec_bp384_prv.pem │ │ │ ├── ec_521_prv.pem │ │ │ └── ec_bp512_prv.pem │ │ ├── .gitignore │ │ └── suites │ │ │ └── test_suite_version.data │ ├── programs │ │ ├── ssl │ │ │ └── test-ca │ │ │ │ ├── cert_md2.crt │ │ │ │ ├── crl_md2.pem │ │ │ │ ├── serial │ │ │ │ ├── index.attr │ │ │ │ └── client2.pfx │ │ ├── CMakeLists.txt │ │ ├── pkey │ │ │ └── rsa_pub.txt │ │ ├── aes │ │ │ └── CMakeLists.txt │ │ └── util │ │ │ └── CMakeLists.txt │ ├── library │ │ └── .gitignore │ ├── .gitignore │ ├── DartConfiguration.tcl │ └── visualc │ │ └── VS6 │ │ ├── rsa_pub.txt │ │ └── dh_prime.txt ├── uvpp │ ├── uvpp.hpp │ └── fs.hpp ├── jsoncons │ └── README.md ├── sha2 │ └── sha2.gyp └── libutp │ └── prop_sheets │ └── x64-2012.props ├── test.sh ├── logo └── clearskies.png ├── TODO ├── test ├── main.cpp └── massif.sh ├── scripts ├── setup_environment_ubuntu_13.10.sh └── setup_environment_ubuntu_14.04.sh ├── src └── cs │ ├── boost_fs_fwd.hpp │ └── fs.hpp ├── .gitignore └── .travis.yml /tools/gyp/OWNERS: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /tools/gyp/test/make/main.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | ./build.sh 3 | -------------------------------------------------------------------------------- /tools/gyp/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /tools/gyp/test/many-actions/file0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/many-actions/file1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/many-actions/file2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/many-actions/file3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/many-actions/file4: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/win/asm-files/b.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/win/asm-files/c.S: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/empty.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/framework/empty.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/rebuild/empty.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/somefile.ext: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/win/command-quote/a.S: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/win/vs-macros/input.S: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/libuv/test/fixtures/empty_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/pylib/gyp/generator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/sanitize-rule-names/blah.S: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-copy-bundle/empty.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/rpath/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-env-order/file.ext1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-env-order/file.ext2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-env-order/file.ext3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xctest/resource.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-none/src/foo.cc: -------------------------------------------------------------------------------- 1 | foo.cc 2 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/file1: -------------------------------------------------------------------------------- 1 | file1 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/file2: -------------------------------------------------------------------------------- 1 | file2 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/rebuild/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/rpath/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/win/batch-file-action/infile: -------------------------------------------------------------------------------- 1 | input 2 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/subdir/header.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/libuv/test/fixtures/load_error.node: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/include/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/hash_file_4: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ./build/out/Debug/unit_test 3 | -------------------------------------------------------------------------------- /tools/gyp/test/linux/implicit-rpath/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/archs/empty_main.cc: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/archs/header.h: -------------------------------------------------------------------------------- 1 | typedef int MyInt; 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/bundle-resources/secret.txt: -------------------------------------------------------------------------------- 1 | abc 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/copy-dylib/empty.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/installname/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/ldflags-libtool/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-gc/c-file.c: -------------------------------------------------------------------------------- 1 | void c_fun() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-gc/cc-file.cc: -------------------------------------------------------------------------------- 1 | void cc_fun() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/sourceless-module/empty.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tools/gyp/test/no-cpp/src/empty-main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/ssl/test-ca/cert_md2.crt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/ssl/test-ca/crl_md2.pem: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/ssl/test-ca/serial: -------------------------------------------------------------------------------- 1 | 12 2 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-multiple/src/input.txt: -------------------------------------------------------------------------------- 1 | hello there 2 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/directory/file3: -------------------------------------------------------------------------------- 1 | file3 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/directory/file4: -------------------------------------------------------------------------------- 1 | file4 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/copies/file1: -------------------------------------------------------------------------------- 1 | file1 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/copies/file2: -------------------------------------------------------------------------------- 1 | file2 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/mac-bundle/app.order: -------------------------------------------------------------------------------- 1 | _main 2 | -------------------------------------------------------------------------------- /tools/gyp/test/linux/implicit-rpath/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/archs/file.mm: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/global-settings/src/dir2/file.txt: -------------------------------------------------------------------------------- 1 | File. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/installname/file.c: -------------------------------------------------------------------------------- 1 | int f() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/ldflags/subdirectory/symbol_list.def: -------------------------------------------------------------------------------- 1 | _f 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-gc/needs-gc.m: -------------------------------------------------------------------------------- 1 | void objc_fun() { } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/prefixheader/header.h: -------------------------------------------------------------------------------- 1 | typedef int MyInt; 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/sourceless-module/empty.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/win/vs-macros/stuff.blah: -------------------------------------------------------------------------------- 1 | Random data file. 2 | -------------------------------------------------------------------------------- /vendor/uvpp/uvpp.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "tcp.hpp" 3 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/directory/subdir/file5: -------------------------------------------------------------------------------- 1 | file5 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/parentdir/subdir/file6: -------------------------------------------------------------------------------- 1 | file6 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/bogus2.c: -------------------------------------------------------------------------------- 1 | From bogus2.c 2 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/test1.cc: -------------------------------------------------------------------------------- 1 | From test1.cc 2 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/test2.c: -------------------------------------------------------------------------------- 1 | From test2.c 2 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/test3.cc: -------------------------------------------------------------------------------- 1 | From test3.cc 2 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/test4.c: -------------------------------------------------------------------------------- 1 | From test4.c 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/mac-bundle/header.h: -------------------------------------------------------------------------------- 1 | int f(); 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/mac-bundle/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/inc.h: -------------------------------------------------------------------------------- 1 | #define INC_STRING "inc.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-gc/needs-gc-mm.mm: -------------------------------------------------------------------------------- 1 | void objcpp_fun() { } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/prefixheader/file.c: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/prefixheader/file.cc: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/prefixheader/file.m: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/prefixheader/file.mm: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/unicode-settings/file.cc: -------------------------------------------------------------------------------- 1 | int main() { 2 | } 3 | -------------------------------------------------------------------------------- /tools/gyp/test/rename/filecase/file.c: -------------------------------------------------------------------------------- 1 | int main() { return 0; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/external/file1.in: -------------------------------------------------------------------------------- 1 | Hello from file1.in 2 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/external/file2.in: -------------------------------------------------------------------------------- 1 | Hello from file2.in 2 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/noaction/file1.in: -------------------------------------------------------------------------------- 1 | Hello from file1.in 2 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir2/file1.in: -------------------------------------------------------------------------------- 1 | Hello from file1.in 2 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir2/file2.in: -------------------------------------------------------------------------------- 1 | Hello from file2.in 2 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/library/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | libpolarssl* 3 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/b/b.c: -------------------------------------------------------------------------------- 1 | int funcB() { 2 | return 2; 3 | } 4 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/c/d.c: -------------------------------------------------------------------------------- 1 | int funcD() { 2 | return 4; 3 | } 4 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/bogus1.cc: -------------------------------------------------------------------------------- 1 | From bogus1.cc 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/copies/subdir/file3: -------------------------------------------------------------------------------- 1 | file3 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/copies/subdir/file4: -------------------------------------------------------------------------------- 1 | file4 contents 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/mac-bundle/resource.sb: -------------------------------------------------------------------------------- 1 | A text file. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/intermediate_dir/src/shared_infile.txt: -------------------------------------------------------------------------------- 1 | dummy input 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/depend-on-bundle/bundle.c: -------------------------------------------------------------------------------- 1 | int f() { return 42; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/missing-cfbundlesignature/file.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-copy-bundle/copied.txt: -------------------------------------------------------------------------------- 1 | old copied file 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuilds/copy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cp "$@" 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/sourceless-module/fun.c: -------------------------------------------------------------------------------- 1 | int f() { return 42; } 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/inc.h: -------------------------------------------------------------------------------- 1 | #define INC_STRING "inc.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/ldflags/subdirectory/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | void g() {} 3 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/strip/subdirectory/nested_file.c: -------------------------------------------------------------------------------- 1 | void nested_f() {} 2 | -------------------------------------------------------------------------------- /tools/gyp/test/make/noload/lib/shared.h: -------------------------------------------------------------------------------- 1 | extern const char kSharedStr[]; 2 | -------------------------------------------------------------------------------- /tools/gyp/test/no-cpp/src/call-f-main.c: -------------------------------------------------------------------------------- 1 | void* f(); 2 | int main() { f(); } 3 | -------------------------------------------------------------------------------- /tools/gyp/test/variables/commands/test.py: -------------------------------------------------------------------------------- 1 | print "sample\\path\\foo.cpp" 2 | -------------------------------------------------------------------------------- /vendor/libuv/m4/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore libtoolize-generated files. 2 | *.m4 3 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/ssl/test-ca/index.attr: -------------------------------------------------------------------------------- 1 | unique_subject = no 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir2/file1.in0: -------------------------------------------------------------------------------- 1 | Hello from file1.in0 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir2/file2.in0: -------------------------------------------------------------------------------- 1 | Hello from file2.in0 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir2/file3.in1: -------------------------------------------------------------------------------- 1 | Hello from file3.in1 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir2/file4.in1: -------------------------------------------------------------------------------- 1 | Hello from file4.in1 2 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/subdir/inc.h: -------------------------------------------------------------------------------- 1 | #define INC_STRING "subdir/inc.h" 2 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/.gitignore: -------------------------------------------------------------------------------- 1 | /test_suite* 2 | data_files/mpi_write 3 | -------------------------------------------------------------------------------- /tools/gyp/test/assembly/src/lib1.c: -------------------------------------------------------------------------------- 1 | int lib1_function(void) { 2 | return 42; 3 | } 4 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/inc1/include1.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE1_STRING "include1.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/win/rc-build/hello.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/shadow1/shadow.h: -------------------------------------------------------------------------------- 1 | #define SHADOW_STRING "shadow1/shadow.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/shadow2/shadow.h: -------------------------------------------------------------------------------- 1 | #define SHADOW_STRING "shadow2/shadow.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/s-needs-no-depfiles/empty.s: -------------------------------------------------------------------------------- 1 | # This file intentionally left blank. 2 | -------------------------------------------------------------------------------- /logo/clearskies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/logo/clearskies.png -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/inc1/include1.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE1_STRING "inc1/include1.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/subdir/a/b/c.printvars: -------------------------------------------------------------------------------- 1 | # Empty file for testing build rules 2 | -------------------------------------------------------------------------------- /tools/gyp/test/win/rc-build/subdir/include.h: -------------------------------------------------------------------------------- 1 | // Just exists to make sure it can be included. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/copies/src/executable-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo echo echo echo cho ho o o 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/bundle-resources/change.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | tr a-z A-Z < "${1}" > "${2}" 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/depend-on-bundle/executable.c: -------------------------------------------------------------------------------- 1 | int f(); 2 | int main() { 3 | return f(); 4 | } 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-copy-bundle/resource_file.sb: -------------------------------------------------------------------------------- 1 | This is included in the framework bundle. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/sdkroot/file.cc: -------------------------------------------------------------------------------- 1 | #include 2 | using std::map; 3 | 4 | int main() { 5 | } 6 | -------------------------------------------------------------------------------- /tools/gyp/test/no-cpp/src/f.cc: -------------------------------------------------------------------------------- 1 | extern "C" { void* f(); } 2 | 3 | void* f() { return new int; } 4 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/subdir/foo/bar/baz.printvars: -------------------------------------------------------------------------------- 1 | # Empty file for testing build rules 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir1/define3.in0: -------------------------------------------------------------------------------- 1 | #define STRING3 "Hello from define3.in0\n" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir1/define4.in0: -------------------------------------------------------------------------------- 1 | #define STRING4 "Hello from define4.in0\n" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/subdir2/inc2/include2.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE2_STRING "inc2/include2.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/subdir3/inc3/include3.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE3_STRING "inc3/include3.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/subdir/inc2/include2.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE2_STRING "subdir/inc2/include2.h" 2 | -------------------------------------------------------------------------------- /vendor/libuv/src/win/fs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/libuv/src/win/fs.c -------------------------------------------------------------------------------- /tools/gyp/test/assembly/src/as.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Mock windows assembler. 3 | cl /MD /c %1 /Fo"%2" 4 | 5 | -------------------------------------------------------------------------------- /tools/gyp/test/configurations/target_platform/left.c: -------------------------------------------------------------------------------- 1 | const char *message(void) { 2 | return "left"; 3 | } 4 | -------------------------------------------------------------------------------- /tools/gyp/test/configurations/target_platform/right.c: -------------------------------------------------------------------------------- 1 | const char *message(void) { 2 | return "right"; 3 | } 4 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/subdir2/deeper/deeper.h: -------------------------------------------------------------------------------- 1 | #define DEEPER_STRING "subdir2/deeper/deeper.h" 2 | -------------------------------------------------------------------------------- /tools/gyp/test/link-objects/extra.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void extra() { 4 | printf("PASS\n"); 5 | } 6 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/bundle-resources/executable-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo echo echo echo cho ho o o 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuilds/subdirectory/copied_file.txt: -------------------------------------------------------------------------------- 1 | This file should be copied to the products dir. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/make/noload/lib/shared.c: -------------------------------------------------------------------------------- 1 | #include "shared.h" 2 | 3 | const char kSharedStr[] = "shared.c"; 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/depend-on-bundle/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | -------------------------------------------------------------------------------- /tools/gyp/test/home_dot_gyp/home/.gyp/include.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'foo': '"fromhome"', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /tools/gyp/test/home_dot_gyp/home2/.gyp/include.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'foo': '"fromhome2"', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/solibs_avoid_relinking/main.cc: -------------------------------------------------------------------------------- 1 | extern int foo(); 2 | 3 | int main() { 4 | return foo(); 5 | } 6 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | * Finish CS protocol and test 2 | * Review handling of exceptions out of protocol etc. 3 | * Chop the update messages 4 | -------------------------------------------------------------------------------- /test/main.cpp: -------------------------------------------------------------------------------- 1 | #define BOOST_TEST_DYN_LINK 2 | #define BOOST_TEST_MAIN 3 | #include 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/massif.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | valgrind --tool=massif build/out/Debug/unit_test 3 | # see results with ms_print massif.out.. 4 | -------------------------------------------------------------------------------- /tools/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'foo': '"fromhome3"', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /tools/gyp/test/library_dirs/subdir/README.txt: -------------------------------------------------------------------------------- 1 | Make things live in a subdirectory, to make sure that DEPTH works correctly. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/framework/TestFramework/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/libraries/subdir/README.txt: -------------------------------------------------------------------------------- 1 | Make things live in a subdirectory, to make sure that DEPTH works correctly. 2 | -------------------------------------------------------------------------------- /vendor/jsoncons/README.md: -------------------------------------------------------------------------------- 1 | Kept in sync with larroy/jsoncons 2 | 3 | Source code originally from: danielaparker/jsoncons 4 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/.gitignore: -------------------------------------------------------------------------------- 1 | CMakeCache.txt 2 | CMakeFiles 3 | CTestTestfile.cmake 4 | cmake_install.cmake 5 | Testing 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/dir3/Readme: -------------------------------------------------------------------------------- 1 | This is just to make sure files that don't parse as certs are ignored. 2 | -------------------------------------------------------------------------------- /tools/gyp/test/link-objects/base.c: -------------------------------------------------------------------------------- 1 | void extra(); 2 | 3 | int main(int argc, char** argv) { 4 | extra(); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/win/rc-build/hello.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/tools/gyp/test/win/rc-build/hello.ico -------------------------------------------------------------------------------- /tools/gyp/test/win/rc-build/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/tools/gyp/test/win/rc-build/small.ico -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/func1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func1(void) 4 | { 5 | printf("Hello from func1.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/func2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func2(void) 4 | { 5 | printf("Hello from func2.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/func3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func3(void) 4 | { 5 | printf("Hello from func3.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/func4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func4(void) 4 | { 5 | printf("Hello from func4.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/func5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func5(void) 4 | { 5 | printf("Hello from func5.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/compilable/src/lib1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _lib1_hpp 2 | #define _lib1_hpp 3 | 4 | extern void lib1_function(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/rebuild/delay-touch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | sleep 1 # mtime resolution is 1 sec on unix. 6 | touch "$1" 7 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/chained-dependency/chained.c: -------------------------------------------------------------------------------- 1 | #include "generated/header.h" 2 | 3 | int main(int argc, char** argv) { 4 | return 0; 5 | } 6 | -------------------------------------------------------------------------------- /tools/gyp/test/additional-targets/src/dir1/lib1.c: -------------------------------------------------------------------------------- 1 | #ifdef _WIN32 2 | __declspec(dllexport) 3 | #endif 4 | int func1(void) { 5 | return 42; 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-arc/c-file.c: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "C files shouldn't be ARC'd!" 3 | #endif 4 | 5 | void c_fun() {} 6 | 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-arc/cc-file.cc: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "C++ files shouldn't be ARC'd!" 3 | #endif 4 | 5 | void cc_fun() {} 6 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir1/function1.in: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function1(void) 4 | { 5 | printf("Hello from function1.in\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir1/function2.in: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function2(void) 4 | { 5 | printf("Hello from function2.in\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/same-source-file-name/src/func.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func(void) 4 | { 5 | printf("Hello %s from func.c\n", PROG); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/actions/generated-header/main.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "MyHeader.h" 4 | 5 | int main() { 6 | printf("%s\n", kFoo); 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/strip/subdirectory/test_reading_save_file_from_postbuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | test -f ${CHROMIUM_STRIP_SAVE_FILE} 6 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/src/subdir1/main1.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello from main1.cc\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/src/subdir2/main2.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello from main2.cc\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/variables/filelist/src/dummy.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | 5 | open(sys.argv[1], 'w').write(open(sys.argv[2]).read()) 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_pub.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/ec_pub.der -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/hash_file_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/hash_file_1 -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/hash_file_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/hash_file_2 -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/hash_file_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/hash_file_3 -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/cfile.c: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifdef CCFLAG 6 | #error CCFLAG should not be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/mfile.m: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifdef CCFLAG 6 | #error CCFLAG should not be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/multiple-targets/src/common.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void common(void) 4 | { 5 | printf("hello from common.c\n"); 6 | return; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/standalone-static-library/mylib.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void print(void) 4 | { 5 | printf("hello from mylib.c\n"); 6 | return; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/standalone-static-library/prog.c: -------------------------------------------------------------------------------- 1 | extern void print(void); 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | print(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir1/function1.in1: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function1(void) 4 | { 5 | printf("Hello from function1.in1\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir1/function2.in1: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function2(void) 4 | { 5 | printf("Hello from function2.in1\n"); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/ccfile.cc: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/cppfile.cpp: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/cxxfile.cxx: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/mmfile.mm: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-rebuild/src/prog1.in: -------------------------------------------------------------------------------- 1 | #include 2 | #include "prog1.h" 3 | 4 | void prog1(void) 5 | { 6 | printf("Hello from %s!\n", NAME); 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-rebuild/src/prog2.in: -------------------------------------------------------------------------------- 1 | #include 2 | #include "prog2.h" 3 | 4 | void prog2(void) 5 | { 6 | printf("Hello from %s!\n", NAME); 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir3/function3.in: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern "C" void function3(void) 4 | { 5 | printf("Hello from function3.in\n"); 6 | } 7 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/ssl/test-ca/client2.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/programs/ssl/test-ca/client2.pfx -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.pk8.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/ec_prv.pk8.der -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.sec1.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/ec_prv.sec1.der -------------------------------------------------------------------------------- /tools/gyp/test/dependency-copy/src/file1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from file1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/dependency-copy/src/file2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from file2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/home_dot_gyp/src/printfoo.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("FOO is %s\n", FOO); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/ccfile_withcflags.cc: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/mmfile_withcflags.mm: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-arc/m-file.m: -------------------------------------------------------------------------------- 1 | #if !__has_feature(objc_arc) 2 | #error "ObjC files with CLANG_ENABLE_OBJC_ARC should be ARC'd!" 3 | #endif 4 | 5 | void m_fun() {} 6 | -------------------------------------------------------------------------------- /tools/gyp/test/sibling/src/prog1/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/sibling/src/prog2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/subdirectory/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/DartConfiguration.tcl: -------------------------------------------------------------------------------- 1 | Site: localhost 2 | BuildName: PolarSSL-test 3 | CoverageCommand: /usr/bin/gcov 4 | MemoryCheckCommand: /usr/bin/valgrind 5 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.pk8.pw.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/ec_prv.pk8.pw.der -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/format_pkcs12.fmt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/format_pkcs12.fmt -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/c/c.c: -------------------------------------------------------------------------------- 1 | int funcC() { 2 | return 3 3 | // Intentional syntax error. This file should never be compiled, so this 4 | // shouldn't be a problem. 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/cppfile_withcflags.cpp: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/cflags/cxxfile_withcflags.cxx: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-arc/mm-file.mm: -------------------------------------------------------------------------------- 1 | #if !__has_feature(objc_arc) 2 | #error "ObjC++ files with CLANG_ENABLE_OBJC_ARC should be ARC'd!" 3 | #endif 4 | 5 | void mm_fun() {} 6 | -------------------------------------------------------------------------------- /tools/gyp/test/same-source-file-name/src/subdir1/func.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void subdir1_func(void) 4 | { 5 | printf("Hello %s from subdir1/func.c\n", PROG); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/same-source-file-name/src/subdir2/func.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void subdir2_func(void) 4 | { 5 | printf("Hello %s from subdir2/func.c\n", PROG); 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/subdirectory/src/subdir/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/toplevel-dir/src/sub1/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/toplevel-dir/src/sub2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/pkcs8_pbe_sha1_3des.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/pkcs8_pbe_sha1_3des.der -------------------------------------------------------------------------------- /tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc."; 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc."; 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-arc/m-file-no-arc.m: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "ObjC files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" 3 | #endif 4 | 5 | void m_fun() {} 6 | -------------------------------------------------------------------------------- /tools/gyp/test/subdirectory/src/subdir/subdir2/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from prog3.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /scripts/setup_environment_ubuntu_13.10.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | apt-get install libboost-filesystem1.54-dev libboost-test1.54-dev libsqlite3-dev g++-4.8 ninja-build 6 | -------------------------------------------------------------------------------- /scripts/setup_environment_ubuntu_14.04.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | apt-get install libboost-filesystem1.55-dev libboost-test1.55-dev libsqlite3-dev g++-4.8 ninja-build 6 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/subdir2/deeper/deeper.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | printf("Hello from deeper.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc." 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc." 4 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-arc/mm-file-no-arc.mm: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "ObjC++ files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" 3 | #endif 4 | 5 | void mm_fun() {} 6 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/objc-gc/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main() { 4 | printf("gc on: %d\n", [NSGarbageCollector defaultCollector] != NULL); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/pkcs8_pbes2_pbkdf2_3des.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/vendor/polarssl-1.3.3/tests/data_files/pkcs8_pbes2_pbkdf2_3des.der -------------------------------------------------------------------------------- /tools/gyp/test/compilable/src/lib1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "lib1.hpp" 3 | 4 | void lib1_function(void) { 5 | fprintf(stdout, "Hello from lib1.c\n"); 6 | fflush(stdout); 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larroy/clearskies_core/HEAD/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings -------------------------------------------------------------------------------- /tools/gyp/test/ninja/solibs_avoid_relinking/solib.cc: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | __declspec(dllexport) 3 | #else 4 | __attribute__((visibility("default"))) 5 | #endif 6 | int foo() { 7 | return 42; 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/relative/foo/b/b.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'b', 5 | 'type': 'static_library', 6 | 'sources': ['b.cc'], 7 | }, 8 | ], 9 | } 10 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/suites/test_suite_version.data: -------------------------------------------------------------------------------- 1 | Check compiletime library version 2 | check_compiletime_version:"1.3.3" 3 | 4 | Check runtime library version 5 | check_runtime_version:"1.3.3" 6 | -------------------------------------------------------------------------------- /tools/gyp/test/configurations/target_platform/front.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | const char *message(void); 4 | 5 | int main(int argc, char *argv[]) { 6 | printf("%s\n", message()); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/make/noload/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "lib/shared.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from %s.\n", kSharedStr); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuilds/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | void f() {} 5 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAEvHl9s65/COw9SWtPtBGz9iClWKUB 3 | 4CItCM/g3Irsixp78kvpKVHMW6G+uyR0kJrg 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func1(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from prog1.c\n"); 8 | func1(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/archs/my_file.cc: -------------------------------------------------------------------------------- 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 | int x = 1; 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuilds/file_g.c: -------------------------------------------------------------------------------- 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 | void g() {} 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuilds/file_h.c: -------------------------------------------------------------------------------- 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 | void h() {} 5 | -------------------------------------------------------------------------------- /tools/gyp/test/win/lib-flags/answer.h: -------------------------------------------------------------------------------- 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 | int answer(); -------------------------------------------------------------------------------- /tools/gyp/test/module/src/lib1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void module_main(void) 7 | { 8 | fprintf(stdout, "Hello from lib1.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/module/src/lib2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void module_main(void) 7 | { 8 | fprintf(stdout, "Hello from lib2.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/buildevents/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 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 | int main() {} 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_224_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | ME4wEAYHKoZIzj0CAQYFK4EEACEDOgAEFpOikPfwtXH+K0HV2EsBMnYx9Khg+ZX6 3 | MywJf1QZK7EPABE/Kv+xPBokzkSRRXGpVECuAUoAy/c= 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /tools/gyp/gyp.bat: -------------------------------------------------------------------------------- 1 | @rem Copyright (c) 2009 Google Inc. All rights reserved. 2 | @rem Use of this source code is governed by a BSD-style license that can be 3 | @rem found in the LICENSE file. 4 | 5 | @python "%~dp0gyp_main.py" %* 6 | -------------------------------------------------------------------------------- /tools/gyp/test/library/src/lib1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void lib1_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib1.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/library/src/lib2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void lib2_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib2.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-copy-bundle/main.c: -------------------------------------------------------------------------------- 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 | int main() {} 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-static-library/empty.c: -------------------------------------------------------------------------------- 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 | void f() {} 5 | -------------------------------------------------------------------------------- /tools/gyp/test/multiple-targets/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void common(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("hello from prog1.c\n"); 8 | common(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/multiple-targets/src/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void common(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("hello from prog2.c\n"); 8 | common(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/subdir2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func2(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from subdir2/prog2.c\n"); 8 | func2(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/prune_targets/lib1.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | void libfunc1() { 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/prune_targets/lib2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | void libfunc2() { 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/prune_targets/lib3.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | void libfunc3() { 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir3/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void function3(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from program.c\n"); 8 | function3(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/samples/samples.bat: -------------------------------------------------------------------------------- 1 | @rem Copyright (c) 2009 Google Inc. All rights reserved. 2 | @rem Use of this source code is governed by a BSD-style license that can be 3 | @rem found in the LICENSE file. 4 | 5 | @python %~dp0/samples %* 6 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/debuginfo/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | void f() {} 6 | int main() {} 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-multiple-configurations/main.c: -------------------------------------------------------------------------------- 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 | int main() {} 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/type_envvars/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | void f() {} 6 | int main() {} 7 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/subdir/a/b/c.gencc: -------------------------------------------------------------------------------- 1 | // -*- mode: c++ -*- 2 | #include 3 | 4 | using std::cout; 5 | using std::endl; 6 | 7 | namespace gen { 8 | void c() { 9 | cout << "hi c" << endl; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/x.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int x() { 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/y.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int y() { 6 | return 2; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/z.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int z() { 6 | return 3; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/shard/hello1.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int f1() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/shard/hello2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int f2() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/shard/hello3.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int f3() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/shard/hello4.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int f4() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_256_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEd3Jlb4FLOZJ51eHxeB+sbwmaPFyh 3 | sONTUYNLCLZeC1clkM2vj3aTYbzzSs/BHl4HToQmvd4Evm5lOUVElhfeRQ== 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/framework/TestFramework/TestFramework_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'TestFramework' target in the 'TestFramework' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/an_asm.S: -------------------------------------------------------------------------------- 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 | // Fake asm file. 6 | int main() {} 7 | -------------------------------------------------------------------------------- /tools/gyp/test/win/asm-files/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/command-quote/go.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: Copyright (c) 2012 Google Inc. All rights reserved. 4 | :: Use of this source code is governed by a BSD-style license that can be 5 | :: found in the LICENSE file. 6 | 7 | copy %1 %2 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/a/x.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int x() { 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/a/z.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int z() { 6 | return 3; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/b/y.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int y() { 6 | return 2; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/uldi/a.cc: -------------------------------------------------------------------------------- 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/uldi/b.cc: -------------------------------------------------------------------------------- 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/vs-macros/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_bp256_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MFowFAYHKoZIzj0CAQYJKyQDAwIIAQEHA0IABHaMjK5KvKYwbbDtgbDEpiFcN4Bm 3 | 7G1hbBRuE/HH34CblqtpEcJ9igIznwkmhA5VI209HvviZp0JDkxMZg+tqR0= 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/subdir2/subdir3/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func3(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from subdir2/subdir3/prog3.c\n"); 8 | func3(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/compilable/src/program.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "lib1.hpp" 3 | 4 | int main(int argc, char *argv[]) { 5 | fprintf(stdout, "Hello from program.c\n"); 6 | fflush(stdout); 7 | lib1_function(); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/library/src/lib1_moveable.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void moveable_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib1_moveable.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/library/src/lib2_moveable.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void moveable_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib2_moveable.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/infoplist-process/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-fail/postbuild-fail.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | # Copyright (c) 2011 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | exit 1 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-env-order/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/prune_targets/lib_indirect.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | void libfunc_indirect() { 6 | } 7 | -------------------------------------------------------------------------------- /tools/gyp/test/prune_targets/program.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/sanitize-rule-names/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/errors/missing_targets.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 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 | 'target_defaults': { 7 | }, 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-defaults/main.c: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/subdir/foo/bar/baz.gencc: -------------------------------------------------------------------------------- 1 | // -*- mode: c++ -*- 2 | #include 3 | 4 | using std::cout; 5 | using std::endl; 6 | 7 | namespace gen { 8 | void baz() { 9 | cout << "hello baz" << endl; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/command-quote/bat with spaces.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: Copyright (c) 2012 Google Inc. All rights reserved. 4 | :: Use of this source code is governed by a BSD-style license that can be 5 | :: found in the LICENSE file. 6 | 7 | copy %1 %2 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/long-command-line/function.cc: -------------------------------------------------------------------------------- 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 | int func() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/long-command-line/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(aes) 2 | add_subdirectory(hash) 3 | add_subdirectory(pkey) 4 | add_subdirectory(random) 5 | add_subdirectory(ssl) 6 | add_subdirectory(test) 7 | add_subdirectory(x509) 8 | add_subdirectory(util) 9 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/mpi_10: -------------------------------------------------------------------------------- 1 | 643808006803554439230129854961492699151386107534013432918073439524138264842370630061369715394739134090922937332590384720397133335969549256322620979036686633213903952966175107096769180017646161851573147596390153 2 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/non-strs-flattened-to-env/main.c: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-gcc/aliasing.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void check(int* h, long* k) { 4 | *h = 1; 5 | *k = 0; 6 | printf("%d\n", *h); 7 | } 8 | 9 | int main(void) { 10 | long k; 11 | check((int*)&k, &k); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/normalize-paths-win/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/variables/variable-in-path/C1/hello.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/pdbname.cc: -------------------------------------------------------------------------------- 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/precomp.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2013 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 | #include 6 | #include 7 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/server3.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MF8CAQEEGItTogpE7AOnjvYuTqm+9OabmsX02XKIAqAKBggqhkjOPQMBAaE0AzIA 3 | BH0AoQyUhPABS38y67uEVs4O3RXmKKrBdUR7/L2QPB8EC2p5fQcsej6EFasvlTdJ 4 | /w== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /src/cs/boost_fs_fwd.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace bfs = boost::filesystem; 9 | -------------------------------------------------------------------------------- /tools/gyp/test/compiler-override/my_cc.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2012 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | import sys 6 | print sys.argv 7 | -------------------------------------------------------------------------------- /tools/gyp/test/compiler-override/my_cxx.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2012 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | import sys 6 | print sys.argv 7 | -------------------------------------------------------------------------------- /tools/gyp/test/compiler-override/my_ld.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2012 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | import sys 6 | print sys.argv 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/libraries/subdir/mylib.c: -------------------------------------------------------------------------------- 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 | int my_foo(int x) { 6 | return x + 1; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/external_builder/hello.z: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | This file will be passed to the test rule. 6 | 7 | -------------------------------------------------------------------------------- /tools/gyp/test/target/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | void main(void) { 6 | printf("Hello, world!\n"); 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.sec1.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MF8CAQEEGDOOhqiB4jj1Sb1vBVNJS3Pj1hEw/cbJbaAKBggqhkjOPQMBAaE0AzIA 3 | BFF1vN8wo3DznVOT5hJyiNgBZ7X0tLd2xnT3xvNUt9IkBiwfaFS1p68P5Xjq8ljw 4 | Jw== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func4(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from subdir2/subdir3/subdir4/prog4.c\n"); 8 | func4(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/b/b3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | int funcB() { 8 | return 3; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-fail/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | // That's right, this is copyrighted. 6 | void f() {} 7 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xctest/MyClass.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #import "MyClass.h" 6 | 7 | @implementation MyClass 8 | @end 9 | -------------------------------------------------------------------------------- /tools/gyp/test/relative/foo/a/a.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | int main() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/relative/foo/a/c/c.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | int func() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/relative/foo/b/b.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | int func2() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-rebuild/src/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void prog1(void); 4 | extern void prog2(void); 5 | 6 | int main(int argc, char *argv[]) 7 | { 8 | printf("Hello from main.c\n"); 9 | prog1(); 10 | prog2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/win/large-pdb/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int main(int argc, const char** argv) { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/strip/strip.saves: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 The Chromium Authors. 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 | # This file would list symbols that should not be stripped. 6 | -------------------------------------------------------------------------------- /tools/gyp/test/relative/foo/a/c/c.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'c', 5 | 'type': 'static_library', 6 | 'sources': ['c.cc'], 7 | 'dependencies': [ 8 | '../../b/b.gyp:b', 9 | ], 10 | }, 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/inline_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | bool IsFunctionInlined(void* current_return_address); 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_224_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MGgCAQEEHGhJ+X0QZvaZd1ljfH44mUZM7j7HrJcGU6C+B0KgBwYFK4EEACGhPAM6 3 | AAQWk6KQ9/C1cf4rQdXYSwEydjH0qGD5lfozLAl/VBkrsQ8AET8q/7E8GiTORJFF 4 | calUQK4BSgDL9w== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.pk8.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MG8CAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQEEVTBTAgEBBBgzjoaogeI49Um9bwVT 3 | SUtz49YRMP3GyW2hNAMyAARRdbzfMKNw851Tk+YScojYAWe19LS3dsZ098bzVLfS 4 | JAYsH2hUtaevD+V46vJY8Cc= 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | 3 | # Compiled Object files 4 | *.slo 5 | *.lo 6 | *.o 7 | 8 | # Compiled Dynamic libraries 9 | *.so 10 | *.dylib 11 | 12 | # Compiled Static libraries 13 | *.lai 14 | *.la 15 | *.a 16 | 17 | 18 | # vim backup files 19 | *.swp 20 | *~ 21 | *.tmp 22 | -------------------------------------------------------------------------------- /tools/gyp/gyp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2013 The Chromium Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | set -e 7 | base=$(dirname "$0") 8 | exec python2 "${base}/gyp_main.py" "$@" 9 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/as.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Copyright (c) 2011 Google Inc. All rights reserved. 3 | :: Use of this source code is governed by a BSD-style license that can be 4 | :: found in the LICENSE file. 5 | 6 | :: Fake assembler for Windows 7 | cl /TP /c %1 /Fo%2 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/library-directories-define.cc: -------------------------------------------------------------------------------- 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 | int library_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_384_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE2cZitQuinKR5kEUOBDrq9PDGmxVnbREv 3 | YipxyTBZr5mWkcVoDStE0RFXnbEvSkE6LtXEX8+2e1tj4AuR6+WdCaaxrCwMQoKq 4 | EjF+1ZFPmZvEiLsTLoNCzDbyyl4zecdH 5 | -----END PUBLIC KEY----- 6 | -------------------------------------------------------------------------------- /tools/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func5(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from subdir2/subdir3/subdir4/subdir5/prog5.c\n"); 8 | func5(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/a.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #include "a.h" 6 | 7 | int funcA() { 8 | return 42; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/deffile.def: -------------------------------------------------------------------------------- 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 | LIBRARY test_deffile_ok 6 | 7 | EXPORTS 8 | AnExportedFunction 9 | -------------------------------------------------------------------------------- /tools/gyp/test/actions/src/subdir1/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void prog1(void); 4 | extern void prog2(void); 5 | 6 | int main(int argc, char *argv[]) 7 | { 8 | printf("Hello from program.c\n"); 9 | prog1(); 10 | prog2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/a.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | extern int funcB(); 6 | 7 | int funcA() { 8 | return funcB(); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/b.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #include "a.h" 6 | 7 | int funcB() { 8 | return funcA(); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/d.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #include "c.h" 6 | 7 | int funcD() { 8 | return funcC(); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-fail/touch-dynamic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2011 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | set -e 7 | touch "${BUILT_PRODUCTS_DIR}/dynamic_touch" 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-fail/touch-static.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2011 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | set -e 7 | touch "${BUILT_PRODUCTS_DIR}/static_touch" 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-static-library/postbuild-touch-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | touch "${BUILT_PRODUCTS_DIR}/$1" 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/unicode-settings/test_bundle_display_name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2013 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | test "${BUNDLE_DISPLAY_NAME}" = 'α ' 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xctest/MyClass.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #import 6 | 7 | @interface MyClass : NSObject 8 | @end 9 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir1/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void function1(void); 4 | extern void function2(void); 5 | 6 | int main(int argc, char *argv[]) 7 | { 8 | printf("Hello from program.c\n"); 9 | function1(); 10 | function2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/win/lib-flags/answer.cc: -------------------------------------------------------------------------------- 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 | #include "answer.h" 6 | 7 | int answer() { 8 | return 42; 9 | } 10 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/cli2.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIPb3hmTxZ3/mZI3vyk7p3U3wBf+WIop6hDhkFzJhmLcqoAoGCCqGSM49 3 | AwEHoUQDQgAEV+WusXPf06y7k7iB/xKu7uZTrM5VU/Y0Dswu42MlC9+Y4vNcYDaW 4 | wNUYFHDlf5/VS0UY5bBs1Vz4lo+HcKPkxw== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_bp384_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MHowFAYHKoZIzj0CAQYJKyQDAwIIAQELA2IABHGfnQk6Yn4NNQOFxmHOvwDGGSNW 3 | b+kAajEHrx2HG8a7aJhf1yLqMr4xb454O3zRlXeF9mz8DLGV3VyZqOerqoSFU6WE 4 | 39K0jnbURf4A3YvlkJbYd9RpbSO0vI2xRyTmag== 5 | -----END PUBLIC KEY----- 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/server5.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIPEqEyB2AnCoPL/9U/YDHvdqXYbIogTywwyp6/UfDw6noAoGCCqGSM49 3 | AwEHoUQDQgAEN8xW2XYJHlpyPsdZLf8gbu58+QaRdNCtFLX3aCJZYpJO5QDYIxH/ 4 | 6i/SNF1dFr2KiMJrdw1VzYoqDvoByLTt/w== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/server6.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIEQZG5j8IkRLxa9OoZJzD3KkrXqIgi9cHZMVv2s/VcPOoAoGCCqGSM49 3 | AwEHoUQDQgAEgVkxdkkk+hWtq6Axbg7tMxH6kSVVwbDBnANyPpi6LaRyN4kfQzeN 4 | H4462PBX6C9PyQCk99tzD7LGBJTRQDs44w== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/server7.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEILBDMs7bRVxVg6ovTpf2zB9m+22jY7R3LNKRvCPfa6YJoAoGCCqGSM49 3 | AwEHoUQDQgAEHG336dql6qGcsnIZqAkcc63eFbvepuOzTwXobRAuOmk3l4A5wXX/ 4 | vs5wAawLX1wUTUM/AESHmAZrJK9tq5So8g== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #if defined(__LP64__) 6 | # error 64-bit build 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #if !defined(__LP64__) 6 | # error 32-bit build 7 | #endif 8 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/framework-headers/myframework.m: -------------------------------------------------------------------------------- 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 | #import "myframework.h" 6 | 7 | @implementation TestObject 8 | @end 9 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/strip/subdirectory/nested_strip.saves: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 The Chromium Authors. 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 | # This file would list symbols that should not be stripped. 6 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/subdir4/asm-function.assem: -------------------------------------------------------------------------------- 1 | #if PLATFORM_WINDOWS || PLATFORM_MAC 2 | # define IDENTIFIER(n) _##n 3 | #else /* Linux */ 4 | # define IDENTIFIER(n) n 5 | #endif 6 | 7 | .globl IDENTIFIER(asm_function) 8 | IDENTIFIER(asm_function): 9 | movl $41, %eax 10 | ret 11 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_256_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIEnJqMGMS4hWOMQxzx3xyZQTFgm1gNT9Q6DKsX2y8T7uoAoGCCqGSM49 3 | AwEHoUQDQgAEd3Jlb4FLOZJ51eHxeB+sbwmaPFyhsONTUYNLCLZeC1clkM2vj3aT 4 | YbzzSs/BHl4HToQmvd4Evm5lOUVElhfeRQ== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_bp256_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHgCAQEEICFh1vLbdlJvpiwW81aoDwHzL3dnhLNqqZeZqLdmIID/oAsGCSskAwMC 3 | CAEBB6FEA0IABHaMjK5KvKYwbbDtgbDEpiFcN4Bm7G1hbBRuE/HH34CblqtpEcJ9 4 | igIznwkmhA5VI209HvviZp0JDkxMZg+tqR0= 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/actions/subdir1/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void prog1(void); 4 | extern void prog2(void); 5 | 6 | int main(int argc, char *argv[]) 7 | { 8 | printf("Hello from program.c\n"); 9 | prog1(); 10 | prog2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/action_dependencies/src/a.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #include "a.h" 7 | 8 | int funcA() { 9 | return 42; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/relative/foo/a/a.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'a', 5 | 'type': 'executable', 6 | 'sources': ['a.cc'], 7 | 'dependencies': [ 8 | '../../foo/b/b.gyp:b', 9 | 'c/c.gyp:c', 10 | ], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/c.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #ifndef C_H_ 6 | #define C_H_ 7 | 8 | int funcC(); 9 | 10 | #endif // C_H_ 11 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/action_dependencies/src/c.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #include "c.h" 7 | 8 | int funcC() { 9 | return VALUE; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/copies/copies-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/c.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #include "b.h" 6 | #include "c.h" 7 | 8 | int funcC() { 9 | return funcB(); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/framework-headers/myframework.h: -------------------------------------------------------------------------------- 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 | #import 6 | 7 | @interface TestObject : NSObject 8 | @end 9 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-variables/src/input_ext.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #include 6 | 7 | void input_ext() { 8 | printf("input_ext\n"); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/force-include-files.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | std::list > l; 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/win/uldi/main.cc: -------------------------------------------------------------------------------- 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 | extern int some_function(); 6 | 7 | int main() { 8 | some_function(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-multiple/src/foo.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | void foo(void) { 10 | printf("foo\n"); 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/ldflags/subdirectory/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleSignature 6 | ???? 7 | 8 | 9 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-copy-bundle/postbuild-copy-framework.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | set -e 8 | 9 | rsync -acC --delete "$1" "$2" 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/postbuild-multiple-configurations/postbuild-touch-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | touch "${BUILT_PRODUCTS_DIR}/postbuild-file" 8 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/rtti-on.cc: -------------------------------------------------------------------------------- 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 | #ifndef _CPPRTTI 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/warning-level1.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | int export; // Cause a level 1 warning (C4237). 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/win/importlib/hello.cc: -------------------------------------------------------------------------------- 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 | __declspec(dllimport) void some_function(); 6 | 7 | int main() { 8 | some_function(); 9 | } 10 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/visualc/VS6/rsa_pub.txt: -------------------------------------------------------------------------------- 1 | N=6F440E8C8510107B2040ADEC23C2052769FF89E5EAE061AD5FCE8556E051DBF25FBA31DC83AAFCDFACA70912B8BA8CC73EC67132AB66CE79D2F91A190D57CC42C148728B33190D85E311F1744BF6DB95E7C2DBDC8C3FC291825527BC5556E67FFAD2CAB926A6FBF2B47BC746BEC67A8C205C3AFD4028FC0864F5EEEB27FFA91B 2 | E=010001 3 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/copies/subdir/copies-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/subdir2/rules-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/action-envvars/action/action.sh: -------------------------------------------------------------------------------- 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 | set -e 6 | 7 | echo 'Test output' > "${BUILT_PRODUCTS_DIR}/result" 8 | echo 'Other output' > "$1" 9 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-gcc/valid_c.c: -------------------------------------------------------------------------------- 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 | // This file exists to test that valid C files compile correctly. 6 | 7 | void FunctionInCFile(void) { 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-gcc/warn_about_missing_newline.c: -------------------------------------------------------------------------------- 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 | // Important: Don't terminate this file with a newline. 6 | int main() { 7 | return 0; 8 | } -------------------------------------------------------------------------------- /tools/gyp/test/msvs/uldi2010/hello2.c: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int hello2() { 8 | printf("Hello, two!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-variables/src/input_name/test.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #include 6 | 7 | void input_name() { 8 | printf("input_name\n"); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-variables/src/test.input_root.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #include 6 | 7 | void input_root() { 8 | printf("input_root\n"); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/character-set-mbcs.cc: -------------------------------------------------------------------------------- 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 | #ifndef _MBCS 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/opt-ref.cc: -------------------------------------------------------------------------------- 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 | int unused_function() { 6 | return 0; 7 | } 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/visualc/VS6/dh_prime.txt: -------------------------------------------------------------------------------- 1 | P = C3CF8BCFD9E88B0CC35EC526F3D63FA001DC9392E6CA81F3B414173955C582758B52038FAFBF402B8C29DC32F5231B0D2E25B252850C7DCDBFF46D0E7989E51DEA07A53BCF7947D4C95EBA28F9CBAFB0267EC3BCF57B15A49964236B56773851D6621E546F410D504F13827218CD14A1FDB69522DC72DD67D880E51B2E00894F 2 | G = 04 3 | -------------------------------------------------------------------------------- /tools/gyp/test/assembly/src/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int lib1_function(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | fprintf(stdout, "Hello from program.c\n"); 8 | fflush(stdout); 9 | fprintf(stdout, "Got %d.\n", lib1_function()); 10 | fflush(stdout); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/actions/subdir1/actions-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/actions/subdir2/actions-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /tools/gyp/test/library_dirs/subdir/mylib.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "mylib.h" 6 | 7 | std::string my_foo(int x) { 8 | return std::string("world"); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/archs/my_main_file.cc: -------------------------------------------------------------------------------- 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 | #include 5 | extern int x; 6 | int main() { 7 | printf("hello, world %d\n", x); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-gcc/valid_cc.cc: -------------------------------------------------------------------------------- 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 | // This file exists to test that valid C++ files compile correctly. 6 | 7 | void FunctionInCCFile() { 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-variables/src/input_path/subdir/test.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #include 6 | 7 | void input_path() { 8 | printf("input_path\n"); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/sanitize-rule-names/script.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import shutil 8 | import sys 9 | 10 | shutil.copyfile(*sys.argv[1:]) 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/batch-file-action/somecmd.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: The redirs to nul are important. %2 can end up being an unterminated "'d 3 | :: string, so the remainder of the command line becomes the target file name, 4 | :: which in turn fails because it's a filename containing >, nul, etc. 5 | copy /y %1 %2 >nul 2>nul 6 | -------------------------------------------------------------------------------- /tools/gyp/test/win/importlib/has-exports.cc: -------------------------------------------------------------------------------- 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 | __declspec(dllexport) void some_function() { 6 | } 7 | 8 | int main() { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/additional-deps.cc: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main() { 8 | WSAStartup(0, 0); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/delay-load.cc: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main() { 8 | SHCreateDirectory(0, 0); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/library-adjust.cc: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main() { 8 | WSAStartup(0, 0); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/vs-macros/do_stuff.py: -------------------------------------------------------------------------------- 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 | import sys 6 | 7 | input = open(sys.argv[1], "r").read() 8 | open(sys.argv[2], "w").write(input + "Modified.") 9 | -------------------------------------------------------------------------------- /tools/gyp/tools/Xcode/README: -------------------------------------------------------------------------------- 1 | Specifications contains syntax formatters for Xcode 3. These do not appear to be supported yet on Xcode 4. To use these with Xcode 3 please install both the gyp.pbfilespec and gyp.xclangspec files in 2 | 3 | ~/Library/Application Support/Developer/Shared/Xcode/Specifications/ 4 | 5 | and restart Xcode. -------------------------------------------------------------------------------- /vendor/libuv/libuv.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: @PACKAGE_NAME@ 7 | Version: @PACKAGE_VERSION@ 8 | Description: multi-platform support library with a focus on asynchronous I/O. 9 | 10 | Libs: -L${libdir} -luv 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/pkey/rsa_pub.txt: -------------------------------------------------------------------------------- 1 | N = A1D46FBA2318F8DCEF16C280948B1CF27966B9B47225ED2989F8D74B45BD36049C0AAB5AD0FF003553BA843C8E12782FC5873BB89A3DC84B883D25666CD22BF3ACD5B675969F8BEBFBCAC93FDD927C7442B178B10D1DFF9398E52316AAE0AF74E594650BDC3C670241D418684593CDA1A7B9DC4F20D2FDC6F66344074003E211 2 | E = 010001 3 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-multiple/src/copy.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2011 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | import shutil 7 | import sys 8 | 9 | shutil.copyfile(sys.argv[1], sys.argv[2]) 10 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/b.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #ifndef B_H_ 6 | #define B_H_ 7 | 8 | #include "a.h" 9 | 10 | int funcB(); 11 | 12 | #endif // B_H_ 13 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/framework/TestFramework/ObjCVectorInternal.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #include 6 | 7 | struct ObjCVectorImp { 8 | std::vector v; 9 | }; 10 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-gcc/valid_m.m: -------------------------------------------------------------------------------- 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 | // This file exists to test that valid Objective-C files compile correctly. 6 | 7 | void FunctionInMFile(void) { 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/list_excluded/hello_mac.cpp: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int hello2() { 8 | printf("Hello, two!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/props/AppName.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-variables/src/subdir/input_dirname.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #include 6 | 7 | void input_dirname() { 8 | printf("input_dirname\n"); 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/warning-as-error.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | // Cause a warning, even at /W1 7 | int export; 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/main-crt.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | // Stub so we can link with /NODEFAULTLIB when checking disasm. 6 | int mainCRTStartup() { 7 | return 5; 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/gyp-defines/echo.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[2], 'w+') 10 | f.write(sys.argv[1]) 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/a.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #ifndef A_H_ 6 | #define A_H_ 7 | 8 | #include "generated.h" 9 | 10 | int funcA(); 11 | 12 | #endif // A_H_ 13 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/clang-cxx-language-standard/c++11.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | static_assert(__cplusplus == 201103L, "wrong c++ standard version"); 6 | 7 | int main() { return 0; } 8 | 9 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/loadable-module/module.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | int SuperFly() { 6 | return 42; 7 | } 8 | 9 | const char* SuperFoo() { 10 | return "Hello World"; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/xcode-gcc/valid_mm.mm: -------------------------------------------------------------------------------- 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 | // This file exists to test that valid Objective-C++ files compile correctly. 6 | 7 | void FunctionInMMFile() { 8 | } 9 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/external_builder/msbuild_action.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | import sys 6 | 7 | with open('msbuild_action.out', 'w') as f: 8 | f.write(' '.join(sys.argv)) 9 | 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/disable-specific-warnings.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | int main() { 6 | // Causes level 1 warning (C4700) 7 | int i; 8 | return i; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/function-level-linking.cc: -------------------------------------------------------------------------------- 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 | int comdat_function() { 6 | return 1; 7 | } 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/runtime-checks.cc: -------------------------------------------------------------------------------- 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 | #ifndef __MSVC_RUNTIME_CHECKS 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/hello/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | printf("Hello, world!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/hello/hello2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | printf("Hello, two!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/libraries/subdir/hello.cc: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main() { 8 | std::cout << "Hello, world!" << std::endl; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/external_builder/external_builder.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | import sys 6 | 7 | with open('external_builder.out', 'w') as f: 8 | f.write(' '.join(sys.argv)) 9 | 10 | -------------------------------------------------------------------------------- /tools/gyp/test/toolsets/toolsets.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | const char *GetToolset() { 6 | #ifdef TARGET 7 | return "Target"; 8 | #else 9 | return "Host"; 10 | #endif 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/force-include-files-with-precompiled.cc: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main() { 8 | std::string s; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/vs-macros/test_exists.py: -------------------------------------------------------------------------------- 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 | import os 6 | import sys 7 | 8 | if not os.path.exists(sys.argv[1]): 9 | raise 10 | open(sys.argv[2], 'w').close() 11 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_521_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQAHeFC1U9p6wOO5LevnTygdzb9nPcZ 3 | 6zVNaYee5/PBNvsPv58I+Gvl+hKOwaBR0+bGQ+ha2o/6zzZjwmC9LIRLb1YAzujk 4 | ip5l0Jyt2J8jXe4F87imRr5xXx9n1bQ04P8jofwH73dAGT5A7v9vO839dlqpFVAz 5 | Uk/k8gX1RE4pLEwvasE= 6 | -----END PUBLIC KEY----- 7 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_bp512_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MIGbMBQGByqGSM49AgEGCSskAwMCCAEBDQOBggAEOLfskrYcXGx/vCik7HWdSPzU 3 | 4uN03v1cSWilTb73UQ5ReIb7/DjqOapSk1nXCnFWw108usfOd2vbJR3WS85xI0Qk 4 | 7nBJ7tBy8NvE15mW4XXVV+JjdjrpcJXAgec+fbLjitw9TJoEh7Ht6HbcH8phyQLp 5 | odhyK4YSko8YokhFWRo= 6 | -----END PUBLIC KEY----- 7 | -------------------------------------------------------------------------------- /vendor/sha2/sha2.gyp: -------------------------------------------------------------------------------- 1 | { 2 | "includes": [ 3 | '../../common.gypi', 4 | ], 5 | "targets": 6 | [ 7 | { 8 | "target_name": "sha2", 9 | "type": "static_library", 10 | "sources": [ 11 | "sha2.c", 12 | ] 13 | }, 14 | ], 15 | } 16 | 17 | -------------------------------------------------------------------------------- /tools/gyp/test/assembly/src/override_asm.asm: -------------------------------------------------------------------------------- 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 | ; This is a placeholder. It should not be referenced if overrides work 6 | ; correctly. 7 | 8 | Bad stuff that shouldn't assemble. 9 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/config_attrs/hello.c: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | printf("Hello, world!\n"); 10 | return 0; 11 | } -------------------------------------------------------------------------------- /tools/gyp/test/msvs/list_excluded/hello.cpp: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main(int argc, char *argv[]) { 8 | printf("Hello, world!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/props/hello.c: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | printf("Hello, world!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/action_dependencies/src/b.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #ifndef B_H_ 7 | #define B_H_ 8 | 9 | #include "a.h" 10 | 11 | int funcB(); 12 | 13 | #endif // B_H_ 14 | -------------------------------------------------------------------------------- /tools/gyp/test/standalone/standalone.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name' : 'foo', 9 | 'type' : 'executable' 10 | }, 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/subsystem-windows.cc: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/precompiled/precomp.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | // The precompiled header does not have to be the first one in the file. 6 | 7 | #include 8 | #include 9 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.sec1.pw.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-CBC,AA94892A169FA426 4 | 5 | gSkFuUENNke5MvkWHc11/w1NQWBxaIxGT+d5oRcqs44D3tltVOwtdnYexoD9uSIL 6 | wMFFRLL6I5ii1Naa38nPOMaa7kLU2J3jY8SeIH1rQ43X6tlpv9WFGqDn/m6X7oKo 7 | RMMfGdicPZg= 8 | -----END EC PRIVATE KEY----- 9 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/format_gen.pub: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA0UszjREl+JklUyevaN8fb0Gp 3 | 13Dzb4pY3MCoJK15BWoeoUFAIVvuI0C8bRm/i1OO4BN9tSRrRjW+S89YbYy1C73P 4 | UgKZSejjnEFA4chcSOKOhZlM6K7+Pcrcx+sdiDu1DheODMiSFhoxt+H6IUvBEGkI 5 | 5AWFu5MDP7wlU/AZfQIDAQAB 6 | -----END PUBLIC KEY----- 7 | -------------------------------------------------------------------------------- /tools/gyp/AUTHORS: -------------------------------------------------------------------------------- 1 | # Names should be added to this file like so: 2 | # Name or Organization 3 | 4 | Google Inc. 5 | Bloomberg Finance L.P. 6 | Yandex LLC 7 | 8 | Steven Knight 9 | Ryan Norton 10 | David J. Sankel 11 | Eric N. Vander Weele 12 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-bare/src/bare.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[1], 'wb') 10 | f.write('Hello from bare.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/configurations/x64/configurations.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) { 4 | if (sizeof(void*) == 4) { 5 | printf("Running Win32\n"); 6 | } else if (sizeof(void*) == 8) { 7 | printf("Running x64\n"); 8 | } else { 9 | printf("Unexpected platform\n"); 10 | } 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/external_builder/hello.cpp: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | int main(int argc, char *argv[]) { 8 | printf("Hello, world!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/library/one/sub.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 6 | { 7 | 'target_name': 'one', 8 | 'type': 'static_library', 9 | }, 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/library/two/sub.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 6 | { 7 | 'target_name': 'two', 8 | 'type': 'static_library', 9 | }, 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type1.cc: -------------------------------------------------------------------------------- 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 | #ifdef _NATIVE_WCHAR_T_DEFINED 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type2.cc: -------------------------------------------------------------------------------- 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 | #ifndef _NATIVE_WCHAR_T_DEFINED 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/large-pdb/dllmain.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include 6 | 7 | BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) { 8 | return TRUE; 9 | } 10 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/library-directories-reference.cc: -------------------------------------------------------------------------------- 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 | extern int library_function(); 6 | 7 | int main() { 8 | library_function(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_prv.pk8.pw.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIGRMBwGCiqGSIb3DQEMAQEwDgQIIrlmCCSpJzcCAggABHGm2LyJ60ojfilRRp8h 3 | Xf+sWL3lJq6wlj4Nk41SHVnZ2RiVtP5NVK908/WxnXkridd6Qpjnq/14woWVmQxT 4 | IzhKFVi22YmQyBsNj+bEGDAE4c9qaby8u6zbzs7Qj29F90f/PiYsaIEGcNn/W88e 5 | XarNDw== 6 | -----END ENCRYPTED PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /tools/gyp/test/configurations/basics/configurations.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]) 4 | { 5 | #ifdef FOO 6 | printf("Foo configuration\n"); 7 | #endif 8 | #ifdef DEBUG 9 | printf("Debug configuration\n"); 10 | #endif 11 | #ifdef RELEASE 12 | printf("Release configuration\n"); 13 | #endif 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/hard_dependency/src/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[1], 'wb') 10 | f.write('/* Hello World */\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/global-settings/src/dir1/dir1.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 6 | { 7 | 'target_name': 'dir1_target', 8 | 'type': 'none', 9 | }, 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/action_dependencies/src/a.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #ifndef A_H_ 7 | #define A_H_ 8 | 9 | #include "a/generated.h" 10 | 11 | int funcA(); 12 | 13 | #endif // A_H_ 14 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/action_dependencies/src/c.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | #ifndef C_H_ 7 | #define C_H_ 8 | 9 | #include "c/generated.h" 10 | 11 | int funcC(); 12 | 13 | #endif // C_H_ 14 | -------------------------------------------------------------------------------- /tools/gyp/test/toolsets/toolsets_shared.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2013 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 | const char *GetToolsetShared() { 6 | #ifdef TARGET 7 | return "Target"; 8 | #else 9 | return "Host"; 10 | #endif 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/deffile.cc: -------------------------------------------------------------------------------- 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 | void AnExportedFunction() { 6 | } 7 | 8 | void AnotherExportedFunction() { 9 | } 10 | 11 | int main() { 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/link-warning.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | // This will cause LNK4254. 6 | #pragma comment(linker, "/merge:.data=.text") 7 | 8 | int main() { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /vendor/libutp/prop_sheets/x64-2012.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/test-ca2.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDCD2RUOoHHwVxAzozi4hsGmEV1ttAPhKXZF14dvI6tEIOpke4WxdueF 3 | lap01tGkXuqgBwYFK4EEACKhZANiAATD2is0QTdYL4dW/vyJuilDS07gbsMOV1Mz 4 | OVjUUrSRlTkLI99fFyRiSPwalSnOLC2HwohSgK/Waqsh3bjTHG5YuMrosmmO80Gt 5 | KcO0X3WnR2/VGSlVaZpTOyC0ZhZgMx4= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /tools/gyp/test/additional-targets/src/dir1/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[1], 'wb') 10 | f.write('Hello from emit.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/build-option/hello.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | int main(int argc, char *argv[]) 10 | { 11 | printf("Hello, world!\n"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/compiler-override/test.c: -------------------------------------------------------------------------------- 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 | // Deliberate C syntax error as this file should never be passed to 6 | // the actual compiler 7 | #error Should not be passed to a real compiler 8 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/double_dependent.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'double_dependent', 9 | 'type': 'none', 10 | }, 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/main.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | extern int funcA(); 10 | 11 | int main() { 12 | printf("%d\n", funcA()); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /tools/gyp/test/make/main.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #include 6 | 7 | #include "main.h" 8 | 9 | int main(int argc, char *argv[]) { 10 | printf("hello world\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/shared_output/hello.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | int main(int argc, char *argv[]) { 10 | printf("Hello, world!\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/subdir/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | namespace gen { 5 | extern void c(); 6 | extern void baz(); 7 | } 8 | 9 | int main() { 10 | gen::c(); 11 | gen::baz(); 12 | } 13 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_384_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDA/XY2b4oC1aWzFzJ+Uz4r35rYd1lkrKrKzpMYHRQQX7DJ9zcrtfBAF 3 | PXGaBXTwp2qgBwYFK4EEACKhZANiAATZxmK1C6KcpHmQRQ4EOur08MabFWdtES9i 4 | KnHJMFmvmZaRxWgNK0TREVedsS9KQTou1cRfz7Z7W2PgC5Hr5Z0JprGsLAxCgqoS 5 | MX7VkU+Zm8SIuxMug0LMNvLKXjN5x0c= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/test-int-ca2.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGkAgEBBDAtxOHUV4be1MdH1frBHzxITCyUSxrVjJN8QTvTVk558ka0a3zhd4Pb 3 | ekWt7wBPXQegBwYFK4EEACKhZANiAATw6KHd9flIt43V2YWdxCVYzD35jqxduWGW 4 | tcHGFfGPB3CkIcQ2f5+hRV2uphVhrtK6/dBV47qcnX0fdA2LFbyKTU/6HGxtqrxu 5 | 1rvy8DIeYLgSZdAuDXDujFv1DzapfVg= 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | 3 | compiler: 4 | # - clang 5 | - gcc 6 | 7 | before_install: 8 | # - lsb_release -a 9 | - sudo scripts/setup_environment_ubuntu_12.04.sh 10 | - export PATH=$(pwd)/gyp:${PATH} 11 | - export CXX="g++-4.8" CC="gcc-4.8" 12 | 13 | script: 14 | - ./build.sh 15 | - ./test.sh 16 | 17 | 18 | git: 19 | depth: 2 20 | -------------------------------------------------------------------------------- /tools/gyp/test/compiler-override/cxxtest.cc: -------------------------------------------------------------------------------- 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 | // Deliberate C syntax error as this file should never be passed to 6 | // the actual compiler 7 | #error Should not be passed to a real compiler 8 | -------------------------------------------------------------------------------- /tools/gyp/test/defines-escaping/defines-escaping.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | printf(TEST_FORMAT, TEST_ARGS); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/shared_output/there/there.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | int main(int argc, char *argv[]) { 10 | printf("Hello, world!\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/action_dependencies/src/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[1], 'wb') 10 | f.write('/* Hello World */\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/same-rule-output-file-name/src/touch.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[1], 'w+') 10 | f.write('Hello from touch.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/variables/latelate/src/program.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | 10 | int main(int argc, char *argv[]) { 11 | printf(FOO "\n"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/warning-level4.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | const int i = -1; 7 | // Cause a level 4 warning (C4245). 8 | unsigned int j = i; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/tools/emacs/run-unit-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2012 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | emacs --no-site-file --no-init-file --batch \ 6 | --load ert.el --load gyp.el --load gyp-tests.el \ 7 | -f ert-run-tests-batch-and-exit 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_bp384_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIGoAgEBBDA92S51DZDX05/BiFzYrRLqlEHyK5M0tNllICrbFEjOJMWAioXdmvwi 3 | mvCjEk91W8ugCwYJKyQDAwIIAQELoWQDYgAEcZ+dCTpifg01A4XGYc6/AMYZI1Zv 4 | 6QBqMQevHYcbxrtomF/XIuoyvjFvjng7fNGVd4X2bPwMsZXdXJmo56uqhIVTpYTf 5 | 0rSOdtRF/gDdi+WQlth31GltI7S8jbFHJOZq 6 | -----END EC PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-subdir/src/make-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | contents = 'Hello from make-file.py\n' 10 | 11 | open(sys.argv[1], 'wb').write(contents) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/actions/src/subdir2/make-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | contents = "Hello from make-file.py\n" 10 | 11 | open(sys.argv[1], 'wb').write(contents) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/errors/duplicate_targets.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'foo' 9 | }, 10 | { 11 | 'target_name': 'foo' 12 | }, 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /tools/gyp/test/library_dirs/subdir/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include 6 | #include "mylib.h" 7 | 8 | int main() { 9 | std::cout << "Hello " << my_foo(99) << std::endl; 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/TestApp/main.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #import 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | return NSApplicationMain(argc, (const char **) argv); 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/clang-cxx-library/libc++.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include 6 | #ifndef _LIBCPP_VERSION 7 | #error expected std library: libc++ 8 | #endif 9 | 10 | int main() { return 0; } 11 | 12 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/clang-cxx-library/libstdc++.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include 6 | #ifndef __GLIBCXX__ 7 | #error expected std library: libstdc++ 8 | #endif 9 | 10 | int main() { return 0; } 11 | 12 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | import sys 7 | 8 | contents = open(sys.argv[1], 'r').read() 9 | open(sys.argv[2], 'wb').write(contents) 10 | 11 | sys.exit(0) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/generator-output-different-drive/prog.c: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Chromium Authors. 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 | #include 6 | 7 | int main(int argc, char *argv[]) { 8 | printf("Hello from prog.c\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/same-target-name-different-directory/src/touch.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | f = open(sys.argv[1], 'w+') 10 | f.write('Hello from touch.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/actions/subdir2/make-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | contents = "Hello from make-file.py\n" 10 | 11 | open(sys.argv[1], 'wb').write(contents) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | import sys 7 | 8 | contents = open(sys.argv[1], 'r').read() 9 | open(sys.argv[2], 'wb').write(contents) 10 | 11 | sys.exit(0) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/additional-include-dirs.cc: -------------------------------------------------------------------------------- 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 | // No path qualification to test compiler include dir specification. 6 | #include "header.h" 7 | 8 | int main() { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/character-set-unicode.cc: -------------------------------------------------------------------------------- 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 | #ifndef _UNICODE 6 | #error 7 | #endif 8 | 9 | #ifndef UNICODE 10 | #error 11 | #endif 12 | 13 | int main() { 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | option(INSTALL_POLARSSL_HEADERS "Install PolarSSL headers." ON) 2 | 3 | if(INSTALL_POLARSSL_HEADERS) 4 | 5 | file(GLOB headers "polarssl/*.h") 6 | 7 | install(FILES ${headers} 8 | DESTINATION include/polarssl 9 | PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) 10 | 11 | endif(INSTALL_POLARSSL_HEADERS) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-subdir/src/subdir/make-subdir-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | contents = 'Hello from make-subdir-file.py\n' 10 | 11 | open(sys.argv[1], 'wb').write(contents) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/actions/generated-header/action.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2013 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import os 8 | import sys 9 | 10 | outfile = sys.argv[1] 11 | open(outfile, 'w').write('const char kFoo[] = "%s";' % sys.argv[2]) 12 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/rules/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import sys 8 | 9 | contents = open(sys.argv[1], 'r').read() 10 | open(sys.argv[2], 'wb').write(contents) 11 | 12 | sys.exit(0) 13 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/uldi2010/hello.c: -------------------------------------------------------------------------------- 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 | #include 6 | 7 | extern int hello2(); 8 | 9 | int main(int argc, char *argv[]) { 10 | printf("Hello, world!\n"); 11 | hello2(); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-none/src/fake_cross.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # Copyright (c) 2012 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | 7 | import sys 8 | 9 | fh = open(sys.argv[-1], 'wb') 10 | for filename in sys.argv[1:-1]: 11 | fh.write(open(filename).read()) 12 | fh.close() 13 | -------------------------------------------------------------------------------- /tools/gyp/test/errors/duplicate_basenames.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'foo', 9 | 'type': 'static_library', 10 | 'sources': ['foo.c', 'foo.cc'], 11 | }, 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/external_builder/msbuild_rule.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | import sys, os.path 6 | 7 | sys.argv[1] = os.path.basename(sys.argv[1]) 8 | 9 | with open('msbuild_rule.out', 'w') as f: 10 | f.write(' '.join(sys.argv)) 11 | 12 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/subdir/printvars.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | """ 8 | Prints interesting vars 9 | """ 10 | 11 | import sys; 12 | 13 | out = open(sys.argv[2], 'w') 14 | out.write(sys.argv[1]); 15 | -------------------------------------------------------------------------------- /tools/gyp/test/assembly/src/lib1.S: -------------------------------------------------------------------------------- 1 | #if PLATFORM_WINDOWS || PLATFORM_MAC 2 | # define IDENTIFIER(n) _##n 3 | #else /* Linux */ 4 | # define IDENTIFIER(n) n 5 | #endif 6 | 7 | .globl IDENTIFIER(lib1_function) 8 | IDENTIFIER(lib1_function): 9 | #if !defined(PLATFORM_ANDROID) 10 | movl $42, %eax 11 | ret 12 | #else /* Android (assuming ARM) */ 13 | mov r0, #42 14 | bx lr 15 | #endif 16 | -------------------------------------------------------------------------------- /tools/gyp/test/errors/duplicate_node.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 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 | 'targets': [ 7 | { 'target_name' : 'foo', 'type': 'executable' }, 8 | ], 9 | 'targets': [ 10 | { 'target_name' : 'bar', 'type': 'executable' }, 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/hello/hello.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/hello/hello2.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello2.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/self-dependency/self_dependency.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | 'includes': [ 7 | 'common.gypi', 8 | ], 9 | 'targets': [ 10 | { 11 | 'target_name': 'a', 12 | 'type': 'none', 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/additional-targets/src/all.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'all_targets', 9 | 'type': 'none', 10 | 'dependencies': ['dir1/actions.gyp:*'], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/build-option/hello.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/custom-generator/test.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 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 | 'targets': [ 7 | { 8 | 'target_name': 'exe', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/library/src/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void lib1_function(void); 4 | extern void lib2_function(void); 5 | extern void moveable_function(void); 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | fprintf(stdout, "Hello from program.c\n"); 10 | fflush(stdout); 11 | lib1_function(); 12 | lib2_function(); 13 | moveable_function(); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/make/dependencies.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'main', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/variables/filelist/update_golden: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | python ../../../gyp --debug variables --debug general --format gypd --depth . src/filelist.gyp > filelist.gyp.stdout 8 | cp -f src/filelist.gypd filelist.gypd.golden 9 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/warning-level2.cc: -------------------------------------------------------------------------------- 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 | int f(int x) { 6 | return 0; 7 | } 8 | 9 | int main() { 10 | double x = 10.1; 11 | // Cause a level 2 warning (C4243). 12 | return f(x); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/missing-cfbundlesignature/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleExecutable 6 | ${EXECUTABLE_NAME} 7 | CFBundlePackageType 8 | APPL 9 | 10 | 11 | -------------------------------------------------------------------------------- /tools/gyp/test/ninja/s-needs-no-depfiles/s-needs-no-depfiles.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'empty', 9 | 'type': 'shared_library', 10 | 'sources': [ 'empty.s' ], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/rename/filecase/test.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 6 | { 7 | 'target_name': 'filecaserename', 8 | 'type': 'executable', 9 | 'sources': [ 10 | 'file.c', 11 | ], 12 | }, 13 | ], 14 | } 15 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/additional-options.cc: -------------------------------------------------------------------------------- 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 | int main() { 6 | // Generate a warning that will appear at level 4, but not level 1 7 | // (truncation and unused local). 8 | char c = 123456; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/uninit.cc: -------------------------------------------------------------------------------- 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 | // Should trigger C6001: using uninitialized memory for |i|. 6 | int f(bool b) { 7 | int i; 8 | if (b) 9 | i = 0; 10 | return i; 11 | } 12 | 13 | int main() {} 14 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/mapfile.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | __declspec(dllexport) 6 | void AnExportedFunction() { 7 | // We need an exported function to verify that /MAPINFO:EXPORTS works. 8 | } 9 | 10 | int main() { 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/no-default-libs.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'test_default', 9 | 'type': 'executable', 10 | 'sources': ['no-default-libs.cc'], 11 | }, 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/win/precompiled/hello2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 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 | // Unlike hello.c, this file specifies the headers. 6 | 7 | #include 8 | #include 9 | 10 | int hello2() { 11 | printf("Hello, two!\n"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/actions-multiple/src/filter.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2011 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | 7 | import sys 8 | 9 | data = open(sys.argv[3], 'r').read() 10 | fh = open(sys.argv[4], 'w') 11 | fh.write(data.replace(sys.argv[1], sys.argv[2])) 12 | fh.close() 13 | -------------------------------------------------------------------------------- /tools/gyp/test/cflags/cflags.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | #ifdef FOO 10 | printf("FOO defined\n"); 11 | #else 12 | printf("FOO not defined\n"); 13 | #endif 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/errors/missing_dep.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 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 | 'targets': [ 7 | { 8 | 'target_name': 'foo', 9 | 'type': 'static_library', 10 | 'dependencies': [ 11 | 'missing.gyp' 12 | ] 13 | }, 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/same-source-file-name/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from prog1.c\n"); 8 | func(); 9 | /* 10 | * Uncomment to test same-named files in different directories, 11 | * which Visual Studio doesn't support. 12 | subdir1_func(); 13 | subdir2_func(); 14 | */ 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/same-source-file-name/src/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func(void); 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | printf("Hello from prog2.c\n"); 8 | func(); 9 | /* 10 | * Uncomment to test same-named files in different directories, 11 | * which Visual Studio doesn't support. 12 | subdir1_func(); 13 | subdir2_func(); 14 | */ 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/sibling/src/prog1/prog1.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'program1', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'prog1.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/sibling/src/prog2/prog2.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'program2', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'prog2.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/toplevel-dir/src/sub2/prog2.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'prog2', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'prog2.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/buffer-security.cc: -------------------------------------------------------------------------------- 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 | #include 6 | #include 7 | 8 | int main() { 9 | char* stuff = reinterpret_cast(_alloca(256)); 10 | strcpy(stuff, "blah"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/runtime-library-md.cc: -------------------------------------------------------------------------------- 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 | #ifndef _MT 6 | #error 7 | #endif 8 | 9 | #ifdef _DEBUG 10 | #error 11 | #endif 12 | 13 | #ifndef _DLL 14 | #error 15 | #endif 16 | 17 | int main() { 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/runtime-library-mt.cc: -------------------------------------------------------------------------------- 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 | #ifndef _MT 6 | #error 7 | #endif 8 | 9 | #ifdef _DEBUG 10 | #error 11 | #endif 12 | 13 | #ifdef _DLL 14 | #error 15 | #endif 16 | 17 | int main() { 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/runtime-library-mtd.cc: -------------------------------------------------------------------------------- 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 | #ifndef _MT 6 | #error 7 | #endif 8 | 9 | #ifndef _DEBUG 10 | #error 11 | #endif 12 | 13 | #ifdef _DLL 14 | #error 15 | #endif 16 | 17 | int main() { 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/warning-level3.cc: -------------------------------------------------------------------------------- 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 | // Cause a level 3 warning (C4359). 6 | struct __declspec(align(8)) C8 { __int64 i; }; 7 | struct __declspec(align(4)) C4 { C8 m8; }; 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /tools/gyp/test/product/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #include 6 | 7 | int func1(void) { 8 | return 42; 9 | } 10 | 11 | int main(int argc, char *argv[]) { 12 | printf("Hello, world!\n"); 13 | printf("%d\n", func1()); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/win/compiler-flags/runtime-library-mdd.cc: -------------------------------------------------------------------------------- 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 | #ifndef _MT 6 | #error 7 | #endif 8 | 9 | #ifndef _DEBUG 10 | #error 11 | #endif 12 | 13 | #ifndef _DLL 14 | #error 15 | #endif 16 | 17 | int main() { 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /tools/gyp/test/exclusion/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 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 | #include 6 | 7 | int func1(void) { 8 | return 42; 9 | } 10 | 11 | int main(int argc, char *argv[]) { 12 | printf("Hello, world!\n"); 13 | printf("%d\n", func1()); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/same-target-name/src/executable1.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 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 | 'targets': [ 7 | { 8 | 'target_name': 'program', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main1.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/same-target-name/src/executable2.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 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 | 'targets': [ 7 | { 8 | 'target_name': 'program', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main2.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/unsupported-manifest.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | 'targets': [ 7 | { 8 | 'target_name': 'test_unsupported', 9 | 'type': 'executable', 10 | 'sources': ['manifest-in-comment.cc'], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/codereview.settings: -------------------------------------------------------------------------------- 1 | # This file is used by gcl to get repository specific information. 2 | CODE_REVIEW_SERVER: codereview.chromium.org 3 | CC_LIST: gyp-developer@googlegroups.com 4 | VIEW_VC: http://code.google.com/p/gyp/source/detail?r= 5 | TRY_ON_UPLOAD: True 6 | TRYSERVER_PROJECT: gyp 7 | TRYSERVER_PATCHLEVEL: 0 8 | TRYSERVER_ROOT: trunk 9 | TRYSERVER_SVN_URL: svn://svn.chromium.org/chrome-try/try-nacl 10 | 11 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/tochar.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # Copyright (c) 2012 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | import sys 7 | 8 | src = open(sys.argv[1]) 9 | dst = open(sys.argv[2], 'w') 10 | for ch in src.read(): 11 | dst.write('%d,\n' % ord(ch)) 12 | src.close() 13 | dst.close() 14 | -------------------------------------------------------------------------------- /tools/gyp/test/library_dirs/subdir/mylib.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #ifndef TEST_LIBRARY_DIRS_SUBDIR_MYLIB_H 6 | #define TEST_LIBRARY_DIRS_SUBDIR_MYLIB_H 7 | 8 | #include 9 | 10 | std::string my_foo(int); 11 | 12 | #endif // TEST_LIBRARY_DIRS_SUBDIR_MYLIB_H 13 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/missing_sources/hello_missing.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello_missing.cpp', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/src/subdir1/executable.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'program1', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main1.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/src/subdir2/executable.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'program2', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main2.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/cxxflags/cxxflags.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 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 | 'targets': [ 7 | { 8 | 'target_name': 'cxxflags', 9 | 'type': 'executable', 10 | 'opt': '-Os', 11 | 'sources': [ 12 | 'cxxflags.cc', 13 | ], 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/include_dirs/src/subdir/subdir_includes.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "inc.h" 4 | #include "include1.h" 5 | #include "include2.h" 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | printf("Hello from subdir/subdir_includes.c\n"); 10 | printf("Hello from %s\n", INC_STRING); 11 | printf("Hello from %s\n", INCLUDE1_STRING); 12 | printf("Hello from %s\n", INCLUDE2_STRING); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /tools/gyp/test/win/generator-output-different-drive/prog.gyp: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Chromium Authors. 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 | 'targets': [ 7 | { 8 | 'target_name': 'program', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'prog.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/subdir/library.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'test_lib', 9 | 'type': 'static_library', 10 | 'sources': ['../library-directories-define.cc'], 11 | }, 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/compiler-override/compiler.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'test.c', 12 | 'cxxtest.cc', 13 | ], 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/make/noload/lib/shared.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'shared', 9 | 'type': 'shared_library', 10 | 'sources': [ 11 | 'shared.c', 12 | 'shared.h', 13 | ], 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/aes/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(aescrypt2 aescrypt2.c) 2 | target_link_libraries(aescrypt2 polarssl) 3 | 4 | add_executable(crypt_and_hash crypt_and_hash.c) 5 | target_link_libraries(crypt_and_hash polarssl) 6 | 7 | install(TARGETS aescrypt2 crypt_and_hash 8 | DESTINATION "bin" 9 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) 10 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_521_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIHcAgEBBEIBsbatB7t55zINpZhg6ijgVShPYFjyed5mbgbUNdKve9oo2Z+ke33Q 3 | lj4WsAcweO6LijjZZqWC9G0Z/5XfOtloWq6gBwYFK4EEACOhgYkDgYYABAAd4ULV 4 | T2nrA47kt6+dPKB3Nv2c9xnrNU1ph57n88E2+w+/nwj4a+X6Eo7BoFHT5sZD6Fra 5 | j/rPNmPCYL0shEtvVgDO6OSKnmXQnK3YnyNd7gXzuKZGvnFfH2fVtDTg/yOh/Afv 6 | d0AZPkDu/287zf12WqkVUDNST+TyBfVETiksTC9qwQ== 7 | -----END EC PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/tests/data_files/ec_bp512_prv.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MIHaAgEBBEA3LJd49p9ybLyj9KJo8WtNYX0QKA15pqApzVGHn+EBKTTf5TlUVTN9 3 | 9pBtx9bS7qTbsgZcAij3Oz7XFkgOfXHSoAsGCSskAwMCCAEBDaGBhQOBggAEOLfs 4 | krYcXGx/vCik7HWdSPzU4uN03v1cSWilTb73UQ5ReIb7/DjqOapSk1nXCnFWw108 5 | usfOd2vbJR3WS85xI0Qk7nBJ7tBy8NvE15mW4XXVV+JjdjrpcJXAgec+fbLjitw9 6 | TJoEh7Ht6HbcH8phyQLpodhyK4YSko8YokhFWRo= 7 | -----END EC PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /tools/gyp/test/dependencies/lib_only.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'a', 9 | 'type': 'static_library', 10 | 'sources': [ 11 | 'a.c', 12 | ], 13 | 'dependencies': ['b/b.gyp:b'], 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 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 | #import 6 | 7 | @interface TestAppAppDelegate : NSObject { 8 | NSWindow *window; 9 | } 10 | 11 | @property (assign) IBOutlet NSWindow *window; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /tools/gyp/test/rules/src/rule.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2011 Google Inc. All rights reserved. 3 | # Use of this source code is governed by a BSD-style license that can be 4 | # found in the LICENSE file. 5 | 6 | import sys 7 | 8 | f = open(sys.argv[1] + ".cc", "w") 9 | f.write("""\ 10 | #include 11 | 12 | int main() { 13 | puts("Hello %s"); 14 | return 0; 15 | } 16 | """ % sys.argv[1]) 17 | f.close() 18 | -------------------------------------------------------------------------------- /tools/gyp/test/self-dependency/common.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 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 | # A common file that other .gyp files include. 6 | # Makes every target in the project depend on dep.gyp:dep. 7 | { 8 | 'target_defaults': { 9 | 'dependencies': [ 10 | 'dep.gyp:dep', 11 | ], 12 | }, 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/rules-dirname/src/actions.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 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 | 'targets': [ 7 | { 8 | 'target_name': 'pull_in_all_actions', 9 | 'type': 'none', 10 | 'dependencies': [ 11 | 'subdir/input-rule-dirname.gyp:*', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/toolsets/main.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 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 | #include 6 | 7 | const char *GetToolset(); 8 | const char *GetToolsetShared(); 9 | 10 | int main(int argc, char *argv[]) { 11 | printf("%s\n", GetToolset()); 12 | printf("Shared: %s\n", GetToolsetShared()); 13 | } 14 | -------------------------------------------------------------------------------- /tools/gyp/test/win/linker-flags/inline_test.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 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 | #include "inline_test.h" 6 | 7 | #include 8 | #pragma intrinsic(_ReturnAddress) 9 | 10 | bool IsFunctionInlined(void* caller_return_address) { 11 | return _ReturnAddress() == caller_return_address; 12 | } 13 | -------------------------------------------------------------------------------- /src/cs/fs.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | /// Formatted string, allows to use stream operators and returns a std::string with the resulting format 5 | #define fs(x) (static_cast(std::ostringstream{} << x).str()) 6 | 7 | /// Format error 8 | #define fe(x) \ 9 | (static_cast(std::ostringstream() << "ERROR: "<< __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << x).str ()) 10 | -------------------------------------------------------------------------------- /tools/gyp/test/cxxflags/cxxflags.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 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 | #include 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | #ifdef __OPTIMIZE__ 10 | printf("Using an optimization flag\n"); 11 | #else 12 | printf("Using no optimization flag\n"); 13 | #endif 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/msvs/shared_output/there/there.gyp: -------------------------------------------------------------------------------- 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 | 'includes': ['../common.gypi'], 7 | 'targets': [ 8 | { 9 | 'target_name': 'there', 10 | 'type': 'executable', 11 | 'sources': [ 12 | 'there.c', 13 | ], 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/rename/filecase/test-casesensitive.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 6 | { 7 | 'target_name': 'filecaserename_sensitive', 8 | 'type': 'executable', 9 | 'sources': [ 10 | 'FiLe.c', 11 | 'fIlE.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/standalone-static-library/invalid.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'bad', 9 | 'type': 'executable', 10 | 'standalone_static_library': 1, 11 | 'sources': [ 12 | 'prog.c', 13 | ], 14 | }, 15 | ], 16 | } -------------------------------------------------------------------------------- /tools/gyp/test/subdirectory/src/symroot.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'variables': { 7 | 'set_symroot%': 0, 8 | }, 9 | 'conditions': [ 10 | ['set_symroot == 1', { 11 | 'xcode_settings': { 12 | 'SYMROOT': '<(DEPTH)/build', 13 | }, 14 | }], 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /vendor/polarssl-1.3.3/programs/util/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(libs 2 | polarssl 3 | ) 4 | 5 | add_executable(strerror strerror.c) 6 | target_link_libraries(strerror ${libs}) 7 | 8 | add_executable(pem2der pem2der.c) 9 | target_link_libraries(pem2der ${libs}) 10 | 11 | install(TARGETS strerror pem2der 12 | DESTINATION "bin" 13 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) 14 | -------------------------------------------------------------------------------- /tools/gyp/test/external-cross-compile/src/program.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Google Inc. All rights reserved. 3 | * Use of this source code is governed by a BSD-style license that can be 4 | * found in the LICENSE file. 5 | */ 6 | 7 | #include 8 | 9 | static char data[] = { 10 | #include "cross_program.h" 11 | }; 12 | 13 | int main(int argc, char *argv[]) { 14 | fwrite(data, 1, sizeof(data), stdout); 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/generator-output/src/symroot.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'variables': { 7 | 'set_symroot%': 0, 8 | }, 9 | 'conditions': [ 10 | ['set_symroot == 1', { 11 | 'xcode_settings': { 12 | 'SYMROOT': '<(DEPTH)/build', 13 | }, 14 | }], 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/restat/src/touch.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Copyright (c) 2012 Google Inc. All rights reserved. 4 | # Use of this source code is governed by a BSD-style license that can be 5 | # found in the LICENSE file. 6 | 7 | import os 8 | import sys 9 | 10 | """Cross-platform touch.""" 11 | 12 | for fname in sys.argv[1:]: 13 | if os.path.exists(fname): 14 | os.utime(fname, None) 15 | else: 16 | open(fname, 'w').close() 17 | -------------------------------------------------------------------------------- /tools/gyp/test/same-target-name/src/all.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 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 | 'targets': [ 7 | { 8 | 'target_name': 'all_exes', 9 | 'type': 'none', 10 | 'dependencies': [ 11 | 'executable1.gyp:*', 12 | 'executable2.gyp:*', 13 | ], 14 | }, 15 | ], 16 | } 17 | -------------------------------------------------------------------------------- /tools/gyp/test/win/asm-files/asm-files.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 7 | { 8 | 'target_name': 'sources_with_asm', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello.cc', 12 | 'b.s', 13 | 'c.S', 14 | ], 15 | }, 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /vendor/uvpp/fs.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | /// Formatted string, allows to use stream operators and returns a std::string with the resulting format 5 | #define fs(x) (static_cast(std::ostringstream{} << x).str()) 6 | 7 | /// Format error 8 | #define fe(x) \ 9 | (static_cast(std::ostringstream() << "ERROR: "<< __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << x).str ()) 10 | -------------------------------------------------------------------------------- /tools/gyp/test/no-output/src/nooutput.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'no_output', 9 | 'type': 'none', 10 | 'direct_dependent_settings': { 11 | 'defines': [ 12 | 'NADA', 13 | ], 14 | }, 15 | }, 16 | ], 17 | } 18 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/library/test.gyp: -------------------------------------------------------------------------------- 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 | 'targets': [ 6 | { 7 | 'target_name': 'duplicate_names', 8 | 'type': 'shared_library', 9 | 'dependencies': [ 10 | 'one/sub.gyp:one', 11 | 'two/sub.gyp:two', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /tools/gyp/test/same-gyp-name/src/all.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 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 | 'targets': [ 7 | { 8 | 'target_name': 'all_exes', 9 | 'type': 'none', 10 | 'dependencies': [ 11 | 'subdir1/executable.gyp:*', 12 | 'subdir2/executable.gyp:*', 13 | ], 14 | }, 15 | ], 16 | } 17 | --------------------------------------------------------------------------------