Skip to content

Commit

Permalink
chore: import pthread-win
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 committed May 12, 2022
1 parent 41888e8 commit 1287b7e
Show file tree
Hide file tree
Showing 360 changed files with 59,068 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Prebuild the binaries.

on:
workflow_dispatch:
push:

jobs:
prebuild:
Expand All @@ -22,7 +21,6 @@ jobs:
shell: powershell
run: |
npm config set msvs_version 2022 -g
git clone https://github.com/coapp-packages/pthreads.git --depth=1
- run: npm install --ignore-scripts
- run: npm run build -- --msvs_version=2022
- uses: actions/upload-artifact@v3
Expand Down
50 changes: 25 additions & 25 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,34 @@
"deps/quickjs_2021_03_27/quickjs-atom.h",
"deps/quickjs_2021_03_27/quickjs-opcode.h",

"pthreads/attr.c",
"pthreads/barrier.c",
"pthreads/cancel.c",
"pthreads/cleanup.c",
"pthreads/condvar.c",
"pthreads/create.c",
"pthreads/dll.c",
"pthreads/exit.c",
"pthreads/fork.c",
"pthreads/global.c",
"pthreads/misc.c",
"pthreads/mutex.c",
"pthreads/private.c",
"pthreads/rwlock.c",
"pthreads/sched.c",
"pthreads/semaphore.c",
"pthreads/spin.c",
"pthreads/sync.c",
"pthreads/tsd.c",
"pthreads/nonportable.c",
"pthreads/errno.c",
"pthreads/signal.c",
"pthreads/autostatic.c",
"compat/win32/pthreads/attr.c",
"compat/win32/pthreads/barrier.c",
"compat/win32/pthreads/cancel.c",
"compat/win32/pthreads/cleanup.c",
"compat/win32/pthreads/condvar.c",
"compat/win32/pthreads/create.c",
"compat/win32/pthreads/dll.c",
"compat/win32/pthreads/exit.c",
"compat/win32/pthreads/fork.c",
"compat/win32/pthreads/global.c",
"compat/win32/pthreads/misc.c",
"compat/win32/pthreads/mutex.c",
"compat/win32/pthreads/private.c",
"compat/win32/pthreads/rwlock.c",
"compat/win32/pthreads/sched.c",
"compat/win32/pthreads/semaphore.c",
"compat/win32/pthreads/spin.c",
"compat/win32/pthreads/sync.c",
"compat/win32/pthreads/tsd.c",
"compat/win32/pthreads/nonportable.c",
"compat/win32/pthreads/errno.c",
"compat/win32/pthreads/signal.c",
"compat/win32/pthreads/autostatic.c",
],
'include_dirs': [
"<!(node -p \"require('node-addon-api').include_dir\")",
"pthreads",
"compat"
"compat/win32/pthreads",
"compat/win32/atomic"
],
}],
["OS=='linux'", {
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions compat/win32/pthreads/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.obj
pthread*.dll
pthread*.exp
pthread*.ilk
pthread*.lib
pthread*.pdb
*.res
Loading

0 comments on commit 1287b7e

Please sign in to comment.