This creates (static) libraries for protocols/, common/, and wayland/.master
							parent
							
								
									f76b7f5385
								
							
						
					
					
						commit
						cce9c338c0
					
				| @ -0,0 +1,7 @@ | ||||
| add_library(sway-common | ||||
| 	ipc-client.c | ||||
| 	list.c | ||||
| 	log.c | ||||
| 	readline.c | ||||
| 	stringop.c | ||||
| 	) | ||||
| @ -0,0 +1,22 @@ | ||||
| include(Wayland) | ||||
| 
 | ||||
| WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-xdg-shell | ||||
| 	xdg-shell.xml | ||||
| 	xdg-shell | ||||
| ) | ||||
| WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-desktop-shell | ||||
| 	desktop-shell.xml | ||||
| 	desktop-shell | ||||
| ) | ||||
| WAYLAND_ADD_PROTOCOL_SERVER(proto-server-desktop-shell | ||||
| 	desktop-shell.xml | ||||
| 	desktop-shell | ||||
| ) | ||||
| 
 | ||||
| add_library(sway-protocols | ||||
| 	${proto-client-xdg-shell} | ||||
| 	${proto-client-desktop-shell} | ||||
| 	${proto-server-desktop-shell} | ||||
| 	) | ||||
| 
 | ||||
| set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE) | ||||
| @ -0,0 +1,17 @@ | ||||
| include_directories( | ||||
| 	${PROTOCOLS_INCLUDE_DIRS} | ||||
| 	${PANGO_INCLUDE_DIRS} | ||||
| ) | ||||
| 
 | ||||
| add_library(sway-wayland | ||||
| 	buffers.c | ||||
| 	pango.c | ||||
| 	registry.c | ||||
| 	window.c | ||||
| 	) | ||||
| 
 | ||||
| target_link_libraries(sway-wayland | ||||
| 	sway-common | ||||
| 	sway-protocols | ||||
| 	${PANGO_LIBRARIES} | ||||
| 	) | ||||
					Loading…
					
					
				
		Reference in new issue