assignable: install nvidia module

This commit is contained in:
jussi 2019-10-03 16:47:03 +03:00
parent f74f9b71a1
commit 39b5f30c73
5 changed files with 9 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build
/*kdev*
**/*swp*

View File

@ -83,7 +83,6 @@ tc_module_t *tc_module_find(enum tc_module_category category, const char *name)
// Call the function to get the module handle
tc_module_t *(*mod_info_func)() = tc_dlsym(handle, TC_MODULE_INFO_FUNCTION_NAME);
//return mod_info_func();
tc_module_t *mod;
if ((mod = mod_info_func()) == NULL) {
tc_dlclose(handle);

View File

@ -17,5 +17,7 @@ if all_nvidia_linux_libs
shared_library('nvidia', 'nvidia_linux.c',
include_directories : incdir,
dependencies : nvidia_linux_libs,
link_with : libtuxclocker)
link_with : libtuxclocker,
install_dir : get_option('libdir') / 'tuxclocker' / 'modules' / 'assignable',
install : true)
endif

View File

@ -11,7 +11,7 @@ AssignableWidget::AssignableWidget(QWidget *parent) : QWidget(parent) {
m_mainLayout->addWidget(m_splitter);
m_assignableTreeView = new QTreeView;
//genAssignableTree(m_assignableTreeView);
genAssignableTree(m_assignableTreeView);
m_splitter->addWidget(m_assignableTreeView);
m_assignableEditor = new AssignableEditor;
@ -32,6 +32,9 @@ void AssignableWidget::genAssignableTree(QTreeView* treeView) {
}
printf("opened nv mod\n");
}
else {
return;
}
QTreeWidgetItem *item = new QTreeWidgetItem;
tc_assignable_node_t *parent = (tc_assignable_node_t*) nv_mod->category_data_callback();