From aaf3a24d94f767c1fb3063e3a333718c0b4a78e5 Mon Sep 17 00:00:00 2001 From: "zhimin.liu" Date: Thu, 23 Apr 2026 16:51:39 +0800 Subject: [PATCH] feat(Res):update resource *.fp 1. update resource *.fp 2.add Makefile_Ubuntu --- clusterApp/Makefile_Ubuntu | 117 ++++++++++++++++++ clusterApp/Res/shader/prog_color.fp | 1 + .../Res/shader/prog_color_with_tex_alpha.fp | 1 + clusterApp/Res/shader/prog_font.fp | 1 + clusterApp/Res/shader/prog_font_attr_alpha.fp | 1 + clusterApp/Res/shader/prog_model_ads.fp | 1 + clusterApp/Res/shader/prog_texture.fp | 1 + .../Res/shader/prog_texture_attr_alpha.fp | 1 + clusterApp/Res/shader/prog_texture_complex.fp | 1 + clusterApp/Res/shader/prog_texture_road.fp | 1 + .../Res/shader/prog_texture_with_mask.fp | 1 + 11 files changed, 127 insertions(+) create mode 100644 clusterApp/Makefile_Ubuntu diff --git a/clusterApp/Makefile_Ubuntu b/clusterApp/Makefile_Ubuntu new file mode 100644 index 0000000..d0d7e58 --- /dev/null +++ b/clusterApp/Makefile_Ubuntu @@ -0,0 +1,117 @@ +APPNAME = clusterApp +DESTDIR = bin +CD = make --no-print-directory +BIN = $(DESTDIR)/$(APPNAME) + +ROOTFS = /home/lst/workspace/rootfs/ +TARGET_PATH_LIB = /usr/lib64 +TARGET_PATH_INCLUDE = /usr/include +TFPT_DIR = /home/lst/workspace/rootfs/root/app/ + +CFLAGS = -fPIC -fno-strict-aliasing -fno-optimize-sibling-calls -Wall + +ifdef DEBUG +CFLAGS += -g -DDEBUG -DINST_DEBUG +else +CFLAGS += -O3 -fexpensive-optimizations +endif + +DEPS = -lpthread -lEGL -lGLESv2 -ldrm -lgbm -lfreetype -lm -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +## DEPS += /home/lst/workspace/jpeg/jpeg-9c/install/lib/libjpeg.a +DEPS += /home/user/zhimin/clusterApp/3psw/jpegsr9c/jpeg-9c/libjpeg.a +DEPS += /home/user/zhimin/packages/install/lib/libcjson.a +DEPS += -lz -lpng16 + +#Make command to use for dependencies +CROSS_COMPILE = /opt/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- +CC = gcc +AR = ar + +SUBDIR = ./src + +CFLAGS += -DLINUX \ + -DEGL_API_FB \ + -DCOMPILE_IN_UBUNTU + ##\ + ##-DCOMPILE_IN_WINDOWS + +CFLAGS += -Iinclude \ + -I$(TARGET_PATH_INCLUDE) \ + -I$(TARGET_PATH_INCLUDE)/freetype2 \ + -I/home/lst/workspace/jpeg/jpeg-9c/install/include \ + -I/home/lst/workspace/zlib/zlib_build/ \ + -I/home/lst/workspace/libpng/libpng_build/ \ + -I/home/user/zhimin/clusterApp/3psw/source_packages/build_install/ \ + -I/home/user/zhimin/clusterApp/3psw/lpng1634/ \ + -I/home/user/zhimin/clusterApp/3psw/source_packages/freetype-2.13.2/ \ + -I/home/huaxu/develop/ICM-SOFT/D20/icm-code/cpu/app/insDavi2.0/3psw/freetype-2.9_MinGW/include/freetype2/ \ + -I/usr/include/GL/ \ + -I/usr/include/drm/ \ + -I$(ROOTFS)/usr/src/linux/include + +CFLAGS += -L/home/user/zhimin/clusterApp/3psw/source_packages/build_install/lib/ + +SOURCES = $(shell find $(SUBDIR) -name "*.c") + +BIN_SOURCE = ./main.c +BIN_SOURCES = $(SOURCES) $(BIN_SOURCE) +BIN_OBJECTS = $(BIN_SOURCES:.c=.o) + +$(APPNAME): compile_tips install finish_tips + + +compile_tips: + @echo "************************" + @echo "Compile Tools" + @echo "***************" + @echo gcc + @echo "***************" + + +finish_tips: + @echo "************************" + @echo -e "make end!\n" + +%.o : %.c + @echo " CC " $@ + @$(QUIET)$(CC) $(CFLAGS) -MD -c $< -o $@ + + +%.o : %.cpp + @echo " CXX " $@ + @$(QUIET)$(CC) $(CFLAGS) -MMD -c $< -o $@ + + +$(BIN) : $(BIN_OBJECTS) + @echo " LD " $@ + @echo " LD depen " $< + @$(QUIET)$(CC) -o $(BIN) $(BIN_OBJECTS) $(DEPS) + @echo -e " BD $(BIN) Build Success!\n" + +install: $(BIN) + ##@echo " CP " $(BIN) $(TFPT_DIR) + ##@cp $(BIN) $(TFPT_DIR) + @echo " SYNC " + @sync + +help: + @echo '' + @echo '----------------' + @echo 'make [option]' + @echo 'Options:' + @echo 'DEBUG=1' + @echo ' disable print debug info' + @echo '----------------' + @echo '' + +clean: + @rm -f $(SOURCES:.c=.d) + @rm -f $(SOURCES:.c=.o) + @rm -f $(BIN_SOURCE:.c=.d) $(BIN_SOURCE:.c=.o) $(BIN) + @clear + @echo '' + @echo 'Make Clean,OK!' + @echo '' + + +-include $(BIN_OBJECTS:.o=.d) diff --git a/clusterApp/Res/shader/prog_color.fp b/clusterApp/Res/shader/prog_color.fp index f66bb97..913cd96 100644 --- a/clusterApp/Res/shader/prog_color.fp +++ b/clusterApp/Res/shader/prog_color.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform float u_flt_inv_alpha; varying vec4 v_v4_clr; diff --git a/clusterApp/Res/shader/prog_color_with_tex_alpha.fp b/clusterApp/Res/shader/prog_color_with_tex_alpha.fp index 1a866df..2377d2a 100644 --- a/clusterApp/Res/shader/prog_color_with_tex_alpha.fp +++ b/clusterApp/Res/shader/prog_color_with_tex_alpha.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex; diff --git a/clusterApp/Res/shader/prog_font.fp b/clusterApp/Res/shader/prog_font.fp index d69e88e..5457691 100644 --- a/clusterApp/Res/shader/prog_font.fp +++ b/clusterApp/Res/shader/prog_font.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex; diff --git a/clusterApp/Res/shader/prog_font_attr_alpha.fp b/clusterApp/Res/shader/prog_font_attr_alpha.fp index 6c5e62d..15708a6 100644 --- a/clusterApp/Res/shader/prog_font_attr_alpha.fp +++ b/clusterApp/Res/shader/prog_font_attr_alpha.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex; diff --git a/clusterApp/Res/shader/prog_model_ads.fp b/clusterApp/Res/shader/prog_model_ads.fp index 2ff71fc..c2a9bec 100644 --- a/clusterApp/Res/shader/prog_model_ads.fp +++ b/clusterApp/Res/shader/prog_model_ads.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; diff --git a/clusterApp/Res/shader/prog_texture.fp b/clusterApp/Res/shader/prog_texture.fp index 0554319..a43f853 100644 --- a/clusterApp/Res/shader/prog_texture.fp +++ b/clusterApp/Res/shader/prog_texture.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex; diff --git a/clusterApp/Res/shader/prog_texture_attr_alpha.fp b/clusterApp/Res/shader/prog_texture_attr_alpha.fp index 21242c4..30f3209 100644 --- a/clusterApp/Res/shader/prog_texture_attr_alpha.fp +++ b/clusterApp/Res/shader/prog_texture_attr_alpha.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex; diff --git a/clusterApp/Res/shader/prog_texture_complex.fp b/clusterApp/Res/shader/prog_texture_complex.fp index ab57fdd..27b4627 100644 --- a/clusterApp/Res/shader/prog_texture_complex.fp +++ b/clusterApp/Res/shader/prog_texture_complex.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform vec4 u_v4_clr; diff --git a/clusterApp/Res/shader/prog_texture_road.fp b/clusterApp/Res/shader/prog_texture_road.fp index 3406baa..84ed4e1 100644 --- a/clusterApp/Res/shader/prog_texture_road.fp +++ b/clusterApp/Res/shader/prog_texture_road.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex; diff --git a/clusterApp/Res/shader/prog_texture_with_mask.fp b/clusterApp/Res/shader/prog_texture_with_mask.fp index 739d0c9..cf3465a 100644 --- a/clusterApp/Res/shader/prog_texture_with_mask.fp +++ b/clusterApp/Res/shader/prog_texture_with_mask.fp @@ -1,3 +1,4 @@ +precision highp float; precision mediump float; uniform sampler2D u_sam_tex;