-
Notifications
You must be signed in to change notification settings - Fork 58
Win32 support #118
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
base: master
Are you sure you want to change the base?
Win32 support #118
Changes from all commits
0f462e0
06d75cf
82833ee
0e81a7c
7a29310
a1e5387
9dc4f7e
6b320ca
169b235
564bc31
9c2fc18
ce3fa9f
9c91b09
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,12 @@ | ||
| *.o | ||
| .*.sw* | ||
| /samu | ||
| out/ | ||
| .vs/ | ||
| .vscode/ | ||
| .cache/ | ||
| build/ | ||
| CMakeUserPresets.json | ||
| CMakePresets.json | ||
| CMakeSettings.json | ||
| *.user | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you think it's possible to get the Makefile to work with
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NMake is not very compatible with Make, easier to maintain both, considering project simplicity |
||
| project(samurai C) | ||
|
|
||
| set(SOURCE | ||
| build.c | ||
| deps.c | ||
| env.c | ||
| graph.c | ||
| htab.c | ||
| log.c | ||
| parse.c | ||
| samu.c | ||
| scan.c | ||
| tool.c | ||
| tree.c | ||
| util.c | ||
| ) | ||
|
|
||
| if (WIN32) | ||
| list(APPEND SOURCE os-win32.c samu.manifest) | ||
| elseif(UNIX) | ||
| list(APPEND SOURCE os-posix.c) | ||
| endif() | ||
|
|
||
| add_executable(samu ${SOURCE}) | ||
|
|
||
| if (UNIX) | ||
| target_link_libraries(samu PRIVATE rt) | ||
| endif() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ extern const char *argv0; | |
| switch (*opt_) | ||
|
|
||
| #define ARGEND \ | ||
| } \ | ||
| } \ | ||
| } | ||
|
|
||
| #define EARGF(x) \ | ||
|
|
||
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.
These are probably better to put in your
.git/info/excludeinstead.Uh oh!
There was an error while loading. Please reload this page.
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.
Agree, will revert later probably