-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
510cfc4
commit c1bc69b
Showing
5 changed files
with
16 additions
and
149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
project(btyacc C) | ||
project(btyacc_wrapper C) | ||
|
||
include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") | ||
conan_basic_setup(TARGETS) | ||
|
||
# ---- btyacc executable ---- | ||
|
||
set(src "${PROJECT_SOURCE_DIR}") | ||
set(bin "${PROJECT_BINARY_DIR}") | ||
add_custom_command( | ||
OUTPUT skeleton.c | ||
COMMAND "${CMAKE_COMMAND}" | ||
"-Dinput=${src}/btyaccpa.ske" | ||
"-Doutput=${bin}/skeleton.c.tmp" | ||
"-P${src}/cmake/skel2c.cmake" | ||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different | ||
"${bin}/skeleton.c.tmp" | ||
"${bin}/skeleton.c" | ||
COMMAND "${CMAKE_COMMAND}" -E remove "${bin}/skeleton.c.tmp" | ||
MAIN_DEPENDENCY btyaccpa.ske | ||
DEPENDS cmake/skel2c.cmake | ||
COMMENT "skel2c [btyaccpa.ske -> skeleton.c]" | ||
VERBATIM | ||
) | ||
|
||
add_executable( | ||
btyacc | ||
closure.c | ||
dtor.c | ||
error.c | ||
lalr.c | ||
lr0.c | ||
main.c | ||
mkpar.c | ||
output.c | ||
mstring.c | ||
reader.c | ||
readskel.c | ||
skeleton.c | ||
symtab.c | ||
verbose.c | ||
warshall.c | ||
"${bin}/skeleton.c" | ||
) | ||
|
||
target_include_directories(btyacc PRIVATE "${src}") | ||
|
||
# ---- Install rules ---- | ||
|
||
include(GNUInstallDirs) | ||
install(TARGETS btyacc RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") | ||
add_subdirectory(source_subfolder) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
sources: | ||
"3.0": | ||
sha256: "cf6ed1f9d23c5b07aeff19344427f9b16e37ba7589ca5bd79415a2773f62e324" | ||
url: https://github.com/ChrisDodd/btyacc/archive/359a83496874b2e8525a457705d8db11ba1cdb99.zip | ||
patches: | ||
"3.0": | ||
- patch_file: patches/0001-include-io-h-on-windows.patch | ||
base_path: "" | ||
sha256: "1e3fcb45cda0d3b05c4b681f9e0f58267869ec4039f9d7496108b4ee7abbaa53" | ||
url: https://github.com/ChrisDodd/btyacc/archive/0dd183492c212696db5970bb2742e4e9d6a8b595.zip |
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
16 changes: 0 additions & 16 deletions
16
recipes/btyacc/all/patches/0001-include-io-h-on-windows.patch
This file was deleted.
Oops, something went wrong.