prepare build system for toolkit specific mizunara source files master
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Fri, 3 Dec 2021 13:17:07 +0000 (14:17 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Fri, 3 Dec 2021 13:17:07 +0000 (14:17 +0100)
configure
make/project.xml
mizunara/Makefile

index 44f8e8a..1278d2f 100755 (executable)
--- a/configure
+++ b/configure
@@ -580,6 +580,8 @@ checkopt_toolkit_gtk3()
        cat >> $TEMP_DIR/make.mk << __EOF__
 TOOLKIT = gtk
 GTKOBJ = draw_cairo.o
+MZUI = gtk_pathbar.c
+MZUI += gtk_browser.c
 
 __EOF__
        return 0
@@ -596,6 +598,8 @@ checkopt_toolkit_motif()
        fi
        cat >> $TEMP_DIR/make.mk << __EOF__
 TOOLKIT = motif
+MZUI = motif_pathbar.c
+MZUI += motif_browser.c
 
 __EOF__
        return 0
index cc20939..8941c3c 100644 (file)
@@ -99,6 +99,9 @@
                                <dependencies>gtk3</dependencies>
                                <make>TOOLKIT = gtk</make>
                                <make>GTKOBJ = draw_cairo.o</make>
+                               <!-- toolkit specific mizunara source files -->
+                               <make>MZUI = gtk_pathbar.c</make>
+                               <make>MZUI += gtk_browser.c</make>
                        </value>
                        <!--
                        <value str="gtk2">
                        <value str="motif">
                                <dependencies>motif</dependencies>
                                <make>TOOLKIT = motif</make>
+                               <!-- toolkit specific mizunara source files -->
+                               <make>MZUI = motif_pathbar.c</make>
+                               <make>MZUI += motif_browser.c</make>
                        </value>
                        <!--
                        <default value="wpf" platform="windows" />
index 327c556..136b523 100644 (file)
@@ -34,6 +34,8 @@ CFLAGS += -I../ui/ -I../ucx -I..
 SRC = main.c
 SRC += menu.c
 
+SRC += $(MZUI)
+
 OBJ = $(SRC:%.c=$(BUILD_ROOT)/build/mizunara/%.$(OBJ_EXT))
 
 all: $(BUILD_ROOT)/build/bin/mizunara