]> granicus.if.org Git - graphviz/commitdiff
Add build of lib/sfio using CMake
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 17:31:57 +0000 (18:31 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 16 Feb 2021 07:01:41 +0000 (08:01 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/1878.

lib/CMakeLists.txt
lib/sfio/CMakeLists.txt [new file with mode: 0644]

index 3cea3a3e8ccdd941494cfd2cfec016bf5b418f19..aad325c7e9ed222d50de23f07f59513f5b193c54 100644 (file)
@@ -13,6 +13,7 @@ add_subdirectory(osage)
 add_subdirectory(pack)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
+add_subdirectory(sfio)
 add_subdirectory(rbtree)
 add_subdirectory(sparse)
 add_subdirectory(sfdpgen)
diff --git a/lib/sfio/CMakeLists.txt b/lib/sfio/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9b83235
--- /dev/null
@@ -0,0 +1,47 @@
+add_library(sfio STATIC
+    # Header files
+    sfhdr.h
+    sfio.h
+    sfio_t.h
+
+    # Source files
+    sfclose.c
+    sfcvt.c
+    sfdisc.c
+    sfexcept.c
+    sfexit.c
+    sfextern.c
+    sffilbuf.c
+    sfflsbuf.c
+    sfmode.c
+    sfnew.c
+    sfnputc.c
+    sfopen.c
+    sfpkrd.c
+    sfprintf.c
+    sfputr.c
+    sfraise.c
+    sfrd.c
+    sfread.c
+    sfresize.c
+    sfscanf.c
+    sfseek.c
+    sfsetbuf.c
+    sfsetfd.c
+    sfsk.c
+    sfstack.c
+    sfswap.c
+    sfsync.c
+    sftable.c
+    sftmp.c
+    sfungetc.c
+    sfvprintf.c
+    sfvscanf.c
+    sfwr.c
+    sfwrite.c
+)
+
+target_include_directories(sfio PRIVATE
+    ${GRAPHVIZ_LIB_DIR}
+)
+