-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for 64-bit NASM assembly.
- Loading branch information
Showing
7 changed files
with
66 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# rules.txt | ||
# | ||
# AutoProject rules file. | ||
# | ||
# Each line is composed of three fields each separated with the '@' character | ||
# The fields are "Rule regex", "CMake extras" and "Libraries" | ||
# | ||
# The "Rule regex" is the regular expression that triggers the rule and is | ||
# determined by searching each line of the input sources for the regex | ||
# | ||
# The "CMake extras" field is the only one that can be empty and represents extra | ||
# rules that may need to be inserted before the "add_executable" line. If | ||
# multiple lines are needed, separate them using "\n" within the field. | ||
# | ||
# The "Libraries" is the list of additional libraries that need to be added | ||
# to the "target_link_libraries" line. If the same library is needed by | ||
# multiple components, only a single instance will appear. The ordering | ||
# of libraries is arbitrary. | ||
# | ||
#\s*#include\s*<(experimental/)?filesystem>@@stdc++fs |
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,4 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
{extras} | ||
add_executable({projname} {srcnames}) | ||
target_link_libraries({projname} {libraries}) |
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,13 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project({projname}) | ||
enable_language(ASM_NASM) | ||
set(CMAKE_ASM_NASM_OBJECT_FORMAT elf64) | ||
set(CMAKE_ASM_NASM_COMPILE_OBJECT "<CMAKE_ASM_NASM_COMPILER> <INCLUDES> \ | ||
<FLAGS> -f ${CMAKE_ASM_NASM_OBJECT_FORMAT} -o <OBJECT> <SOURCE> -l <OBJECT>.lst") | ||
set(CMAKE_ASM_NASM_LINK_EXECUTABLE "ld <CMAKE_ASM_NASM_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>") | ||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
set(CMAKE_ASM_NASM_FLAGS "${ASM_NASM_FLAGS} -g -Fdwarf") | ||
else() | ||
set(CMAKE_ASM_NASM_FLAGS "${ASM_NASM_FLAGS}") | ||
endif() | ||
add_subdirectory(src) |
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
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