[latexila] CMake: forgot to git add a .cmake file...
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] CMake: forgot to git add a .cmake file...
- Date: Thu, 17 May 2012 13:30:27 +0000 (UTC)
commit c10a2bc4d9100b7335c308b6032be501d76f6712
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Thu May 17 15:22:38 2012 +0200
CMake: forgot to git add a .cmake file...
The .cmake files are hidden by the .gitignore, I'll fix that.
cmake/build_vala.cmake | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/cmake/build_vala.cmake b/cmake/build_vala.cmake
new file mode 100644
index 0000000..7cc1ebc
--- /dev/null
+++ b/cmake/build_vala.cmake
@@ -0,0 +1,31 @@
+# Build the Vala sources of LaTeXila.
+#
+# generated_code: This variable will be set with the complete paths of
+# the C files that will be generated.
+
+function (build_vala generated_code)
+ file (GLOB vala_sources "${latexila_SOURCE_DIR}/src/*.vala")
+ file (GLOB vapi_files "${latexila_SOURCE_DIR}/vapi/*.vapi")
+
+ vala_precompile (
+ OUTPUT
+ _generated_code
+
+ SOURCES
+ ${vala_sources}
+
+ PACKAGES
+ gtk+-3.0
+ gtksourceview-3.0
+ gee-1.0
+ posix
+
+ VAPIS
+ ${vapi_files}
+
+ OUTPUT_DIR
+ "${latexila_SOURCE_DIR}/src/C"
+ )
+
+ set (${generated_code} ${_generated_code} PARENT_SCOPE)
+endfunction ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]