mirror of
https://gitlab.com/eql/EQL5.git
synced 2026-01-14 05:11:18 -08:00
unix: add "make install" option for exe, lib, modules (refactor file locations)
This commit is contained in:
parent
4b8d9603e3
commit
71bc1d3525
120 changed files with 267 additions and 1928 deletions
|
|
@ -1,8 +1,8 @@
|
|||
// copyright (c) Polos Ruetz
|
||||
|
||||
#include "ecl_fun.h"
|
||||
#include "eql.h"
|
||||
#include "dyn_object.h"
|
||||
#include "eql5/eql.h"
|
||||
#include "eql5/dyn_object.h"
|
||||
#include "gen/_lobjects.h"
|
||||
#include "ui_loader.h"
|
||||
#include "single_shot.h"
|
||||
|
|
@ -2433,14 +2433,11 @@ cl_object qrequire2(cl_object l_name, cl_object l_quiet) { /// qrequire
|
|||
/// (qrequire :network)
|
||||
ecl_process_env()->nvalues = 1;
|
||||
QString name = symbolName(l_name);
|
||||
QString prefix, postfix;
|
||||
#ifdef Q_OS_DARWIN
|
||||
prefix = "lib"; postfix = ".1.dylib";
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
prefix = "lib"; postfix = ".so.1";
|
||||
#endif
|
||||
QLibrary lib(prefix + "eql5_" + name + postfix); // global library
|
||||
QString fileName = "eql5_" + name;
|
||||
QLibrary lib(fileName); // global library
|
||||
if(!lib.load()) {
|
||||
fileName.prepend("/usr/local/lib/"); // "local" might not be in library search path
|
||||
lib.setFileName(fileName); }
|
||||
typedef void (*Ini)();
|
||||
Ini ini = (Ini)lib.resolve("ini");
|
||||
if(ini) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue