Merge lp:~xapantu/maya/cmake into lp:~maya-dev-team/maya/maya-revamp

Proposed by xapantu
Status: Merged
Approved by: Maxwell Barvian
Approved revision: 22
Merge reported by: Jaap Broekhuizen
Merged at revision: not available
Proposed branch: lp:~xapantu/maya/cmake
Merge into: lp:~maya-dev-team/maya/maya-revamp
Diff against target: 107 lines (+81/-0) (has conflicts)
4 files modified
.bzrignore (+1/-0)
.bzrignore.moved (+1/-0)
CMakeLists.txt (+62/-0)
build_run.OTHER (+17/-0)
Text conflict in CMakeLists.txt
Contents conflict in build_run
To merge this branch: bzr merge lp:~xapantu/maya/cmake
Reviewer Review Type Date Requested Status
Jaap Broekhuizen Approve
Review via email: mp+51468@code.launchpad.net

Commit message

Add a partial build system.

Description of the change

I have just added a partial build system, for the vala part at least

To post a comment you must log in.
lp:~xapantu/maya/cmake updated
23. By xapantu

merge

24. By xapantu

merge

Revision history for this message
Jaap Broekhuizen (jaapz-b) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.bzrignore'
2--- .bzrignore 1970-01-01 00:00:00 +0000
3+++ .bzrignore 2011-02-27 18:35:13 +0000
4@@ -0,0 +1,1 @@
5+maya
6
7=== added file '.bzrignore.moved'
8--- .bzrignore.moved 1970-01-01 00:00:00 +0000
9+++ .bzrignore.moved 2011-02-27 18:35:13 +0000
10@@ -0,0 +1,1 @@
11+build
12
13=== modified file 'CMakeLists.txt'
14--- CMakeLists.txt 2011-02-27 18:22:11 +0000
15+++ CMakeLists.txt 2011-02-27 18:35:13 +0000
16@@ -1,3 +1,4 @@
17+<<<<<<< TREE
18 # The name of our project is "HELLO". CMakeLists files in this project can
19 # refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
20 # to the root binary directory of the project as ${HELLO_BINARY_DIR}.
21@@ -55,3 +56,64 @@
22 add_executable(maya ${VALA_C})
23
24 install(TARGETS maya RUNTIME DESTINATION bin)
25+=======
26+# The name of our project is "HELLO". CMakeLists files in this project can
27+# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
28+# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
29+cmake_minimum_required (VERSION 2.6)
30+project (Maya)
31+
32+list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/vala )
33+# Recurse into the "Hello" and "Demo" subdirectories. This does not actually
34+# cause another cmake executable to run. The same process will walk through
35+# the project's entire directory structure.
36+
37+#add_subdirectory (src)
38+
39+find_package(PkgConfig)
40+pkg_check_modules(DEPS REQUIRED unique-1.0 gtk+-2.0 gee-1.0 gio-2.0)
41+
42+add_definitions(${DEPS_CFLAGS})
43+
44+link_libraries(${DEPS_LIBRARIES})
45+
46+link_directories(${DEPS_LIBRARY_DIRS})
47+
48+find_package(Vala REQUIRED)
49+include(ValaVersion)
50+ensure_vala_version("0.10.0" MINIMUM)
51+
52+include(ValaPrecompile)
53+vala_precompile(VALA_C
54+ maya.vala
55+ frontend/dialogs/About.vala
56+ frontend/dialogs/Event.vala
57+ frontend/widgets/Header.vala
58+ frontend/widgets/Toolbar.vala
59+ frontend/widgets/ModeButton.vala
60+ frontend/widgets/CalendarEvent.vala
61+ frontend/widgets/HeaderColumn.vala
62+ frontend/widgets/DateSwitcher.vala
63+ frontend/widgets/Calendar.vala
64+ frontend/widgets/Entries.vala
65+ frontend/widgets/AppMenu.vala
66+ frontend/widgets/Day.vala
67+ frontend/widgets/Catalog.vala
68+ frontend/widgets/ToolButtonWithMenu.vala
69+ frontend/widgets/CalendarView.vala
70+ frontend/Utilities.vala
71+PACKAGES
72+ gtk+-2.0
73+ gee-1.0
74+ unique-1.0
75+ gio-2.0
76+OPTIONS
77+ --thread
78+ )
79+
80+add_definitions(${CFLAGS} -Wall -Winit-self -Wwrite-strings -Wunreachable-code
81+ -Wstrict-prototypes)
82+add_executable(maya ${VALA_C})
83+
84+install(TARGETS maya RUNTIME DESTINATION bin)
85+>>>>>>> MERGE-SOURCE
86
87=== added file 'build_run.OTHER'
88--- build_run.OTHER 1970-01-01 00:00:00 +0000
89+++ build_run.OTHER 2011-02-27 18:35:13 +0000
90@@ -0,0 +1,17 @@
91+#!/bin/sh
92+
93+## DBUS stuff
94+#install to /usr/bin
95+sudo mkdir /usr/share/maya
96+sudo cp -r backend /usr/share/maya/
97+sudo mv /usr/share/maya/backend/maya_service /usr/bin/maya_service
98+
99+#make .service file
100+sudo rm /usr/share/dbus-1/services/org.elementary.mayaserver.service
101+sudo touch /usr/share/dbus-1/services/org.elementary.mayaserver.service
102+sudo sh -c "echo '[D-BUS Service]' >> /usr/share/dbus-1/services/org.elementary.mayaserver.service"
103+sudo sh -c "echo 'Name=org.elementary.mayaserver' >> /usr/share/dbus-1/services/org.elementary.mayaserver.service"
104+sudo sh -c "echo 'Exec=/usr/bin/maya_service' >> /usr/share/dbus-1/services/org.elementary.mayaserver.service"
105+sudo sh -c "echo ' ' >> /usr/share/dbus-1/services/org.elementary.mayaserver.service"
106+
107+#compile maya-frontend

Subscribers

People subscribed via source and target branches