Skip to content
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

Merged
merged 2 commits into from
Jan 7, 2021
Merged

Windows+Cmake #17

merged 2 commits into from
Jan 7, 2021

Conversation

arves100
Copy link
Contributor

#16

CMakeLists.txt Outdated
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.0)
project(tl-parser)
Copy link

@levlam levlam Jan 2, 2021

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)
Copy link

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")
Copy link

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 .)
Copy link

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];
Copy link

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);
Copy link

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.

@arves100 arves100 force-pushed the master branch 2 times, most recently from 4f2cc7f to f001d17 Compare January 7, 2021 15:16
@arves100
Copy link
Contributor Author

arves100 commented Jan 7, 2021

@levlam updated the new commit with the changes you requested

@levlam
Copy link

levlam commented Jan 7, 2021

Squashed commit was fine.

@vysheng vysheng merged commit 1933e76 into vysheng:master Jan 7, 2021
Copy link

@Dieptran123 Dieptran123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_2022-07-13-22-28-42-17_238abb266a18fee164daf271175dc060

@Dieptran123
Copy link

Cam kết bị ép là tốt

@Dieptran123
Copy link

Dieptran123 commented Jul 15, 2022

Screenshot_2022-07-15-18-33-50-55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants