2019-10-24 06:01:50 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2019 by its authors. See AUTHORS.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2017-12-06 16:03:55 -08:00
|
|
|
#pragma warning disable 1591
|
2017-11-23 16:49:22 -08:00
|
|
|
|
|
|
|
namespace efl {
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Define the name of the libraries to be passed to DllImport statements.
|
|
|
|
/// </summary>
|
2019-10-17 16:23:11 -07:00
|
|
|
internal class Libs {
|
|
|
|
internal const string Efl = "@EFL_DL_MONO@";
|
|
|
|
internal const string Ecore = "@ECORE_DL_MONO@";
|
|
|
|
internal const string Eina = "@EINA_DL_MONO@";
|
|
|
|
internal const string Eo = "@EO_DL_MONO@";
|
|
|
|
internal const string Evas = "@EVAS_DL_MONO@";
|
|
|
|
internal const string Evil = "@EVIL_DL_MONO@";
|
|
|
|
internal const string Edje = "@EDJE_DL_MONO@";
|
|
|
|
internal const string Elementary = "@ELEMENTARY_DL_MONO@";
|
|
|
|
internal const string Eldbus = "@ELDBUS_DL_MONO@";
|
2017-11-23 16:49:22 -08:00
|
|
|
|
2019-10-17 16:23:11 -07:00
|
|
|
internal const string CustomExports = "@CUSTOM_EXPORTS_MONO_DL_MONO@";
|
2019-01-15 23:29:56 -08:00
|
|
|
|
efl-mono: Correctly load dynamic libs for OSX
Summary:
OSX libs end with `.dylib`, so it made failed to load libs, for instance
dl name is `dl.dylib` making it unable to load as it was before
(`libdl.so`).
Test Plan:
Compare with master and note that this diff is able to fail on tests, and
not about importing libs.
- Configure as especified by Enlightenment man page + `-Dbindigns=mono -Ddotnet=true`:
```
meson -Dsystemd=false -Dv4l2=false -Davahi=false -Deeze=false -Dx11=false -Dopengl=full -Dcocoa=true -Dnls=false -Demotion-loaders-disabler=gstreamer1,libvlc,xine -Decore-imf-loaders-disabler=scim,ibus -Dbindigns=cxx,mono -Ddotnet=true --prefix=$PWD/prefix build
```
- Build normally
- Test `efl-mono-suite`
Reviewers: felipealmeida
Reviewed By: felipealmeida
Subscribers: stefan_schmidt, cedric, #reviewers, #committers, woohyun
Tags: #efl, #expertise_solutions
Differential Revision: https://phab.enlightenment.org/D12156
2020-11-25 05:40:17 -08:00
|
|
|
internal const string Libdl = "@LIBDL_DL_MONO@";
|
2019-10-17 16:23:11 -07:00
|
|
|
internal const string Kernel32 = "kernel32.dll";
|
2019-01-15 23:29:56 -08:00
|
|
|
|
2019-10-17 16:23:11 -07:00
|
|
|
internal static readonly Efl.Eo.NativeModule EflModule = new Efl.Eo.NativeModule(Efl);
|
|
|
|
internal static readonly Efl.Eo.NativeModule CoreModule = new Efl.Eo.NativeModule(Ecore);
|
|
|
|
internal static readonly Efl.Eo.NativeModule EinaModule = new Efl.Eo.NativeModule(Eina);
|
|
|
|
internal static readonly Efl.Eo.NativeModule EoModule = new Efl.Eo.NativeModule(Eo);
|
|
|
|
internal static readonly Efl.Eo.NativeModule EvasModule = new Efl.Eo.NativeModule(Evas);
|
|
|
|
internal static readonly Efl.Eo.NativeModule EvilModule = new Efl.Eo.NativeModule(Evil);
|
|
|
|
internal static readonly Efl.Eo.NativeModule EdjeModule = new Efl.Eo.NativeModule(Edje);
|
|
|
|
internal static readonly Efl.Eo.NativeModule ElementaryModule = new Efl.Eo.NativeModule(Elementary);
|
|
|
|
internal static readonly Efl.Eo.NativeModule EldbusModule = new Efl.Eo.NativeModule(Eldbus);
|
|
|
|
internal static readonly Efl.Eo.NativeModule CustomExportsModule = new Efl.Eo.NativeModule(CustomExports);
|
|
|
|
internal static readonly Efl.Eo.NativeModule LibdlModule = new Efl.Eo.NativeModule(Libdl);
|
|
|
|
internal static readonly Efl.Eo.NativeModule Kernel32Module = new Efl.Eo.NativeModule(Kernel32);
|
2017-11-23 16:49:22 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|