Removed Cambalache
We need more features than it can provide for now (cf. #178)
This commit is contained in:
		
							
								
								
									
										17
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,12 +1,11 @@
 | 
			
		||||
NAME=ginput
 | 
			
		||||
CC=gcc
 | 
			
		||||
CAMBALACHE=cambalache
 | 
			
		||||
CFLAGS=$(shell pkg-config --cflags gtk4 libadwaita-1 libusb-1.0) -O3 -I src
 | 
			
		||||
LDFLAGS=$(shell pkg-config --libs gtk4 libadwaita-1 libusb-1.0)
 | 
			
		||||
BUILD_DIR=build
 | 
			
		||||
 | 
			
		||||
CMB := $(wildcard ui/*.cmb)
 | 
			
		||||
C_FILES := $(shell find $(src) -name '*.c')
 | 
			
		||||
UI := $(shell find ui/ -name '*.ui')
 | 
			
		||||
C_FILES := $(shell find src/ -name '*.c')
 | 
			
		||||
 | 
			
		||||
all: resources $(BUILD_DIR)/$(NAME)
 | 
			
		||||
 | 
			
		||||
@@ -20,16 +19,11 @@ $(BUILD_DIR)/$(NAME): $(BUILD_DIR)/resource.c $(C_FILES) | $(BUILD_DIR)
 | 
			
		||||
$(BUILD_DIR):
 | 
			
		||||
	mkdir -p $(BUILD_DIR)
 | 
			
		||||
 | 
			
		||||
# UI : Cambalache contains all of the UI files, just compile them all
 | 
			
		||||
$(BUILD_DIR)/%.ui: ui/$(NAME).cmb | $(BUILD_DIR)
 | 
			
		||||
	$(CAMBALACHE) -E $^
 | 
			
		||||
	mv ui/*.ui $(BUILD_DIR)/
 | 
			
		||||
 | 
			
		||||
# Resources
 | 
			
		||||
$(BUILD_DIR)/resource.c: ui/ginput.gresource.xml ui/style.css $(BUILD_DIR)/main-window.ui
 | 
			
		||||
$(BUILD_DIR)/resource.c: ui/ginput.gresource.xml ui/style.css ui
 | 
			
		||||
	cp ui/style.css $(BUILD_DIR)/
 | 
			
		||||
	cp ui/ginput.gresource.xml $(BUILD_DIR)/
 | 
			
		||||
	cd $(BUILD_DIR) && glib-compile-resources --generate-source --target=resource.c ginput.gresource.xml
 | 
			
		||||
	cd ui && glib-compile-resources --generate-source --target=resource.c ginput.gresource.xml
 | 
			
		||||
	mv ui/resource.c $(BUILD_DIR)/
 | 
			
		||||
 | 
			
		||||
$(BUILD_DIR)/glib-2.0/schemas/gschemas.compiled: v.ginput.gschema.xml | $(BUILD_DIR)
 | 
			
		||||
	mkdir -p $(BUILD_DIR)/glib-2.0/schemas
 | 
			
		||||
@@ -38,7 +32,6 @@ $(BUILD_DIR)/glib-2.0/schemas/gschemas.compiled: v.ginput.gschema.xml | $(BUILD_
 | 
			
		||||
# Phony targets
 | 
			
		||||
.PHONY: clean
 | 
			
		||||
clean:
 | 
			
		||||
	rm -f ui/*.ui # Remove compiled UI files that might be left over
 | 
			
		||||
	rm -rf $(BUILD_DIR)
 | 
			
		||||
 | 
			
		||||
.PHONY: run
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user