diff options
author | Liam Middlebrook <lmiddlebrook@nvidia.com> | 2019-07-29 15:26:56 -0700 |
---|---|---|
committer | Liam Middlebrook <lmiddlebrook@nvidia.com> | 2019-07-29 15:26:56 -0700 |
commit | 1859668b4cc7f9bd889a8a0e38bc0c3ea5058718 (patch) | |
tree | 0e86a5dcac2cb53603742da0eff1f417ad534e86 | |
parent | 06b279e614cfb382def4e3945d31cf96685e7b16 (diff) |
430.40
-rw-r--r-- | Makefile | 21 | ||||
-rw-r--r-- | user-interface.c | 8 | ||||
-rw-r--r-- | version.mk | 2 |
3 files changed, 28 insertions, 3 deletions
@@ -38,10 +38,13 @@ NCURSES_CFLAGS ?= NCURSES_LDFLAGS ?= NCURSES6_CFLAGS ?= NCURSES6_LDFLAGS ?= +NCURSESW6_CFLAGS ?= +NCURSESW6_LDFLAGS ?= PCIACCESS_CFLAGS ?= PCIACCESS_LDFLAGS ?= BUILD_NCURSES6 = $(if $(NCURSES6_CFLAGS)$(NCURSES6_LDFLAGS),1,) +BUILD_NCURSESW6 = $(if $(NCURSESW6_CFLAGS)$(NCURSESW6_LDFLAGS),1,) ############################################################################## # assign variables @@ -63,6 +66,9 @@ NCURSES_UI_SO_C = $(OUTPUTDIR)/g_$(notdir $(NCURSES_UI_SO:.so=.c)) NCURSES6_UI_O = $(OUTPUTDIR)/ncurses6-ui.o NCURSES6_UI_SO = $(OUTPUTDIR)/nvidia-installer-ncurses6-ui.so NCURSES6_UI_SO_C = $(OUTPUTDIR)/g_$(notdir $(NCURSES6_UI_SO:.so=.c)) +NCURSESW6_UI_O = $(OUTPUTDIR)/ncursesw6-ui.o +NCURSESW6_UI_SO = $(OUTPUTDIR)/nvidia-installer-ncursesw6-ui.so +NCURSESW6_UI_SO_C = $(OUTPUTDIR)/g_$(notdir $(NCURSESW6_UI_SO:.so=.c)) RTLD_TEST_C = $(OUTPUTDIR)/g_rtld_test.c RTLD_TEST = $(OUTPUTDIR)/rtld_test @@ -116,7 +122,9 @@ SRC += $(addprefix $(COMMON_UTILS_DIR)/,$(COMMON_UTILS_SRC)) NCURSES_UI_SO_SRC = $(NCURSES_UI_SO_C) NCURSES_UI_SO_SRC += $(if $(BUILD_NCURSES6),$(NCURSES6_UI_SO_C),) +NCURSES_UI_SO_SRC += $(if $(BUILD_NCURSESW6),$(NCURSESW6_UI_SO_C),) CFLAGS += $(if $(BUILD_NCURSES6),-DNV_INSTALLER_NCURSES6,) +CFLAGS += $(if $(BUILD_NCURSESW6),-DNV_INSTALLER_NCURSESW6,) INSTALLER_SRC = $(SRC) $(NCURSES_UI_SO_SRC) $(RTLD_TEST_C) $(COMPAT_32_SRC) @@ -211,12 +219,19 @@ $(NCURSES6_UI_SO): $(NCURSES6_UI_O) $(call quiet_cmd,LINK) -shared $(NCURSES6_LDFLAGS) \ $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) $< -o $@ -lncurses $(LIBS) +$(NCURSESW6_UI_SO): $(NCURSESW6_UI_O) + $(call quiet_cmd,LINK) -shared $(NCURSESW6_LDFLAGS) \ + $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) $< -o $@ -lncursesw $(LIBS) + $(NCURSES_UI_SO_C): $(GEN_UI_ARRAY) $(NCURSES_UI_SO) $(call quiet_cmd,GEN_UI_ARRAY) $(NCURSES_UI_SO) ncurses_ui_array > $@ $(NCURSES6_UI_SO_C): $(GEN_UI_ARRAY) $(NCURSES6_UI_SO) $(call quiet_cmd,GEN_UI_ARRAY) $(NCURSES6_UI_SO) ncurses6_ui_array > $@ +$(NCURSESW6_UI_SO_C): $(GEN_UI_ARRAY) $(NCURSESW6_UI_SO) + $(call quiet_cmd,GEN_UI_ARRAY) $(NCURSESW6_UI_SO) ncursesw6_ui_array > $@ + $(RTLD_TEST_C): $(GEN_UI_ARRAY) $(RTLD_TEST) $(call quiet_cmd,GEN_UI_ARRAY) $(RTLD_TEST) rtld_test_array > $@ @@ -229,13 +244,15 @@ $(call BUILD_OBJECT_LIST,misc.c): CFLAGS += $(PCIACCESS_CFLAGS) # ncurses-ui.c includes ncurses.h $(NCURSES_UI_O): CFLAGS += $(NCURSES_CFLAGS) $(NCURSES6_UI_O): CFLAGS += $(NCURSES6_CFLAGS) +$(NCURSESW6_UI_O): CFLAGS += $(NCURSESW6_CFLAGS) # build the ncurses ui DSO as position-indpendent code -$(NCURSES_UI_O) $(NCURSES6_UI_O): CFLAGS += -fPIC +$(NCURSES_UI_O) $(NCURSES6_UI_O) $(NCURSESW6_UI_O): CFLAGS += -fPIC # define the rule to build each object file $(foreach src,$(ALL_SRC),$(eval $(call DEFINE_OBJECT_RULE,TARGET,$(src)))) $(eval $(call DEFINE_OBJECT_RULE_WITH_OBJECT_NAME,TARGET,$(NCURSES_UI_C),$(NCURSES6_UI_O))) +$(eval $(call DEFINE_OBJECT_RULE_WITH_OBJECT_NAME,TARGET,$(NCURSES_UI_C),$(NCURSESW6_UI_O))) # define a rule to build each makeself-help-script object file $(foreach src,$(MAKESELF_HELP_SCRIPT_SRC),\ @@ -252,7 +269,7 @@ $(CONFIG_H): $(VERSION_MK) @ $(ECHO) -n "#define PROGRAM_NAME " >> $@ @ $(ECHO) "\"$(NVIDIA_INSTALLER_PROGRAM_NAME)\"" >> $@ -$(call BUILD_OBJECT_LIST,$(ALL_SRC)) $(NCURSES6_UI_O): $(CONFIG_H) +$(call BUILD_OBJECT_LIST,$(ALL_SRC)) $(NCURSES6_UI_O) $(NCURSESW6_UI_O): $(CONFIG_H) $(call BUILD_MAKESELF_OBJECT_LIST,$(MAKESELF_HELP_SCRIPT_SRC)): $(CONFIG_H) clean clobber: diff --git a/user-interface.c b/user-interface.c index 32b76e2..e56bda1 100644 --- a/user-interface.c +++ b/user-interface.c @@ -63,6 +63,10 @@ extern const int ncurses_ui_array_size; extern const char ncurses6_ui_array[]; extern const int ncurses6_ui_array_size; #endif +#if defined(NV_INSTALLER_NCURSESW6) +extern const char ncursesw6_ui_array[]; +extern const int ncursesw6_ui_array_size; +#endif /* struct describing the ui data */ @@ -108,6 +112,10 @@ int ui_init(Options *op) #endif { "ncurses", "nvidia-installer ncurses user interface", NULL, ncurses_ui_array, ncurses_ui_array_size }, +#if defined(NV_INSTALLER_NCURSESW6) + { "ncursesw6", "nvidia-installer ncurses v6 user interface (widechar)", + NULL, ncursesw6_ui_array, ncursesw6_ui_array_size }, +#endif { "none", NULL, NULL, NULL, 0 } }; @@ -1 +1 @@ -NVIDIA_VERSION = 430.34 +NVIDIA_VERSION = 430.40 |