summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2020-05-25 16:47:00 +0200
committerSlávek Banko <[email protected]>2020-07-29 17:28:01 +0200
commit84246365cfa08717f4d9030590ecea4fb80f99c2 (patch)
tree098be1e1540aa669e8a3ec9eb762e9b9b48d3ab1 /src
parent4c7c6798cc654d5eacb5cde754c4c62831f6dacf (diff)
downloadkaffeine-mozilla-84246365cfa08717f4d9030590ecea4fb80f99c2.tar.gz
kaffeine-mozilla-84246365cfa08717f4d9030590ecea4fb80f99c2.zip
conversion to the cmake building system.
Signed-off-by: gregory guy <[email protected]> (cherry picked from commit 0960d99962788d774d8df8924f1515a34f81e04b)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt27
-rw-r--r--src/plugin.c2
2 files changed, 27 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..9061415
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,27 @@
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${NSPR_INCLUDE_DIRS}
+ ${X11_INCLUDE_DIR}
+ ${X11_Xt_INCLUDE_PATH}
+ ${LIBXAW7_INCLUDE_DIRS}
+)
+
+
+##### kaffeineplugin (module)
+
+tde_add_library( kaffeineplugin MODULE
+
+ SOURCES
+ plugin.c
+ npunix.c
+ LINK
+ ${X11_LIBRARIES}
+ ${X11_Xt_LIB}
+ ${LIBXAW7_LIBRARIES}
+ ${MATH_LIBC}
+
+ DESTINATION ${LIB_INSTALL_DIR}/mozilla/plugins
+)
diff --git a/src/plugin.c b/src/plugin.c
index abab8ab..6e49a7d 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -64,8 +64,6 @@
#include <stdio.h>
#include <math.h>
-#include <unistd.h>
-
#define XP_UNIX