-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: add scrypt-windows as submodule
Try the simple method first: we know that the code from barrysteyn/scrypt-windows compiles. So add it as submodule and convert the information from binding.gyp to a CMakeList.txt file that is only added to the Windows build.
- Loading branch information
Showing
8 changed files
with
60 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,37 +11,20 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
qt: [5.15.*, 6.6.*] | ||
# temporarily disabled | ||
#qt: [5.15.*, 6.6.*] | ||
qt: [5.15.*] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check out scrypt | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: barrysteyn/scrypt-windows | ||
path: scrypt-windows | ||
submodules: true | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Install node | ||
uses: actions/setup-node@master | ||
|
||
- name: Install node-gyp | ||
shell: powershell | ||
run: | | ||
npm install --global node-gyp@latest | ||
- name: Build scrypt-windows | ||
working-directory: scrypt-windows | ||
run: | | ||
node-gyp configure | ||
node-gyp build | ||
node-gyp install | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
|
@@ -52,13 +35,9 @@ jobs: | |
setup-python: false | ||
|
||
- name: Configure | ||
env: | ||
CXXFLAGS: -I${{ github.workspace }}/scrypt-windows/scrypt-1.1.6/lib | ||
run: > | ||
cmake -B ${{ runner.temp }}/build | ||
"-DCMAKE_LIBRARY_PATH=${{ github.workspace }}/scrypt-windows/build/Release" | ||
. | ||
run: | | ||
cmake -B ${{ runner.temp }}/build . | ||
- name: Build | ||
run: | | ||
cmake --build ${{ runner.temp }}/build | ||
cmake --build ${{ runner.temp }}/build --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "src/3rdparty/scrypt/scrypt-windows"] | ||
path = src/3rdparty/scrypt/scrypt-windows | ||
url = [email protected]:barrysteyn/scrypt-windows.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
if(WIN32) | ||
#add_subdirectory(scrypt) | ||
|
||
target_sources(${TARGET} PRIVATE | ||
InputBuilder.cpp | ||
InputSimulator.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set(SCRYPT_WINDOWS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/scrypt-windows) | ||
set(SCRYPT_SOURCE_DIR ${SCRYPT_WINDOWS_DIR}/scrypt-1.1.6) | ||
|
||
target_sources(${SCRYPT_WINDOWS_LIB} PRIVATE | ||
${SCRYPT_SOURCE_DIR}/lib/crypto/crypto_scrypt-sse.c | ||
${SCRYPT_SOURCE_DIR}/lib/crypto/sha256.c | ||
${SCRYPT_WINDOWS_DIR}/win/mman.c | ||
) | ||
target_include_directories(${SCRYPT_WINDOWS_LIB} PRIVATE | ||
${SCRYPT_SOURCE_DIR} | ||
${SCRYPT_SOURCE_DIR}/lib/crypto | ||
${SCRYPT_SOURCE_DIR}/lib/scryptenc | ||
${SCRYPT_SOURCE_DIR}/lib/util | ||
) | ||
|
||
target_include_directories(${TARGET} PRIVATE | ||
${SCRYPT_SOURCE_DIR}/lib | ||
) |
Submodule scrypt-windows
added at
043189