Full rewrite of all CMakeLists
CMake now works on all platforms
This commit is contained in:
@@ -24,11 +24,7 @@
|
||||
char *find_plugin(const char *plugin)
|
||||
{
|
||||
struct dstr path;
|
||||
#ifdef _WIN64
|
||||
dstr_init_copy(&path, "../../plugins/64bit/");
|
||||
#else
|
||||
dstr_init_copy(&path, "../../plugins/32bit/");
|
||||
#endif
|
||||
dstr_init_copy(&path, OBS_INSTALL_PREFIX "obs-plugins/");
|
||||
dstr_cat(&path, plugin);
|
||||
return path.array;
|
||||
}
|
||||
@@ -37,7 +33,7 @@ char *find_plugin(const char *plugin)
|
||||
char *find_libobs_data_file(const char *file)
|
||||
{
|
||||
struct dstr path;
|
||||
dstr_init_copy(&path, "../../data/libobs/");
|
||||
dstr_init_copy(&path, OBS_INSTALL_PREFIX OBS_DATA_PATH "/libobs/");
|
||||
dstr_cat(&path, file);
|
||||
return path.array;
|
||||
}
|
||||
@@ -46,7 +42,7 @@ char *find_libobs_data_file(const char *file)
|
||||
char *obs_find_plugin_file(const char *file)
|
||||
{
|
||||
struct dstr path;
|
||||
dstr_init_copy(&path, "../../data/obs-plugins/");
|
||||
dstr_init_copy(&path, OBS_INSTALL_PREFIX OBS_DATA_PATH "/obs-plugins/");
|
||||
dstr_cat(&path, file);
|
||||
return path.array;
|
||||
}
|
||||
|
Reference in New Issue
Block a user