-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows+Cmake #17
Windows+Cmake #17
Conversation
CMakeLists.txt
Outdated
@@ -0,0 +1,23 @@ | |||
cmake_minimum_required(VERSION 3.0) | |||
project(tl-parser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you specify "LANGUAGES C"?
CMakeLists.txt
Outdated
@@ -0,0 +1,23 @@ | |||
cmake_minimum_required(VERSION 3.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add "FATAL_ERROR"?
CMakeLists.txt
Outdated
add_definitions("-D_CRT_SECURE_NO_WARNINGS") | ||
list(APPEND SOURCES wgetopt.c wgetopt.h) | ||
if (MSVC) | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:CONSOLE") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't "CONSOLE" a default value of /SUBSYSTEM
?
CMakeLists.txt
Outdated
endif() | ||
|
||
# Set the output directories to the cmake build directory | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG .) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be needed. Other CMake projects can use target's name instead of full path to tl-parser executable.
crc32.h
Outdated
unsigned compute_crc32 (const void *data, int len); | ||
unsigned compute_crc32_combine (unsigned crc1, unsigned crc2, int len2); | ||
|
||
extern unsigned long long crc64_table[256]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crc64 mentions can be deleted.
crc32.h
Outdated
|
||
Case force_exit == 1 (case 1, 2: kprintf call, case -1: assert fail). | ||
*/ | ||
int crc32_check_and_repair (void *input, int l, unsigned *input_crc32, int force_exit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function and other unused functions can be deleted.
4f2cc7f
to
f001d17
Compare
@levlam updated the new commit with the changes you requested |
Squashed commit was fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
#16