Skip to content

Commit 5b50631

Browse files
committed
updated cmakelists to copy sadly
1 parent fb8665d commit 5b50631

File tree

5 files changed

+53
-28
lines changed

5 files changed

+53
-28
lines changed

.idea/workspace.xml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dargon2_flutter/dargon2_flutter_desktop/example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class _MyAppState extends State<MyApp> {
1919
@override
2020
void initState() {
2121
super.initState();
22+
DArgon2Desktop().argon2.hashPasswordString("password", salt: Salt.newSalt()).then((value) => print(value.base64String));
2223
}
2324

2425
@override

dargon2_flutter/dargon2_flutter_desktop/linux/native/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2020 Tejas Mehta <[email protected]>
2+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
6+
cmake_minimum_required(VERSION 3.6.0)
7+
8+
# CMake Instructions for Argon2's build for Android's NDK
9+
10+
project(argon2 C CXX)
11+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
12+
13+
file(GLOB argon2_SOURCES
14+
./argon2/src/blake2/blake2b.c
15+
./argon2/src/argon2.c
16+
./argon2/src/core.c
17+
./argon2/src/encoding.c
18+
./argon2/src/ref.c
19+
./argon2/src/thread.c
20+
)
21+
22+
add_library(argon2 SHARED ${argon2_SOURCES})
23+
target_compile_options(argon2 PRIVATE)
24+
target_include_directories(argon2 PUBLIC ./Argon2/include/)

dargon2_flutter/dargon2_flutter_desktop/native/CMakeLists.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

dargon2_flutter/dargon2_flutter_desktop/windows/native/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2020 Tejas Mehta <[email protected]>
2+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5+
6+
cmake_minimum_required(VERSION 3.6.0)
7+
8+
# CMake Instructions for Argon2's build for Android's NDK
9+
10+
project(argon2 C CXX)
11+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
12+
13+
file(GLOB argon2_SOURCES
14+
./argon2/src/blake2/blake2b.c
15+
./argon2/src/argon2.c
16+
./argon2/src/core.c
17+
./argon2/src/encoding.c
18+
./argon2/src/ref.c
19+
./argon2/src/thread.c
20+
)
21+
22+
add_library(argon2 SHARED ${argon2_SOURCES})
23+
target_compile_options(argon2 PRIVATE)
24+
target_include_directories(argon2 PUBLIC ./Argon2/include/)

0 commit comments

Comments
 (0)