Browse files

Add the pthreads-win32 gyp file :)

  • Loading branch information...
1 parent 3a1c875 commit 2e8fa231f355d53478440f7fdfecd5ce5d45bccf @TooTallNate TooTallNate committed Jan 9, 2012
Showing with 65 additions and 0 deletions.
  1. +65 −0 deps/pthreads-win32/pthread.gyp
View
65 deps/pthreads-win32/pthread.gyp
@@ -0,0 +1,65 @@
+{
+ 'target_defaults': {
+ 'default_configuration': 'Debug',
+ 'configurations': {
+ 'Debug': {
+ 'defines': [ 'DEBUG', '_DEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'RuntimeLibrary': 1, # static debug
+ },
+ },
+ },
+ 'Release': {
+ 'defines': [ 'NDEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'RuntimeLibrary': 0, # static release
+ },
+ },
+ }
+ },
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ },
+ 'VCLibrarianTool': {
+ },
+ 'VCLinkerTool': {
+ 'GenerateDebugInformation': 'true',
+ },
+ },
+ 'conditions': [
+ ['OS == "win"', {
+ 'defines': [
+ 'WIN32'
+ ],
+ }]
+ ],
+ },
+
+ 'targets': [
+ {
+ 'target_name': 'pthread',
+ 'type': 'static_library',
+ 'include_dirs': [ '.' ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [ '.' ],
+ 'defines': [
+ 'PTW32_STATIC_LIB'
+ ],
+ },
+ 'defines': [
+ 'HAVE_PTW32_CONFIG_H'
+ , 'PTW32_STATIC_LIB'
+ ],
+ 'sources': [ './pthread.c', ],
+ },
+
+ {
+ 'target_name': 'test',
+ 'type': 'executable',
+ 'dependencies': [ 'pthread' ],
+ 'sources': [ 'tests/mutex1.c' ]
+ }
+ ]
+}

0 comments on commit 2e8fa23

Please sign in to comment.