adapted standard library to be a gemstone project
This commit is contained in:
parent
e4f45677a3
commit
af4e99b6da
|
@ -10,13 +10,13 @@ set(CMAKE_C_STANDARD_REQUIRED TRUE)
|
|||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR})
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src)
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/../bin/std")
|
||||
|
||||
# add native module libraries
|
||||
|
||||
file(GLOB_RECURSE STDLIB_IO_SOURCE_FILES io/*.c)
|
||||
file(GLOB_RECURSE STDLIB_IO_SOURCE_FILES src/io/*.c)
|
||||
add_library(io ${STDLIB_IO_SOURCE_FILES})
|
||||
|
||||
file(GLOB_RECURSE STDLIB_MEM_SOURCE_FILES mem/*.c)
|
||||
file(GLOB_RECURSE STDLIB_MEM_SOURCE_FILES src/mem/*.c)
|
||||
add_library(mem ${STDLIB_MEM_SOURCE_FILES})
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
[project]
|
||||
name = "gemstone standard library"
|
||||
version = "0.1.0"
|
||||
description = "Cross platform standard library for thr gemstone programming language."
|
||||
license = "GPL-2.0"
|
||||
authors = [ "Sven Vogel <sven.vogel123@web.de>" ]
|
||||
|
||||
[target.release]
|
||||
root = "src/std.gem"
|
||||
mode = "library"
|
||||
output = "bin"
|
||||
archive = "archive"
|
||||
print_ast = false
|
||||
print_asm = false
|
||||
print_ir = false
|
||||
opt = 3
|
Loading…
Reference in New Issue