mirror of https://github.com/buggins/dlangui.git
fix project settings for X11
This commit is contained in:
parent
bc53e03e81
commit
b977506c9b
|
@ -156,10 +156,10 @@
|
||||||
</VersionIds>
|
</VersionIds>
|
||||||
</VersionIds>
|
</VersionIds>
|
||||||
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
|
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
|
||||||
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
|
||||||
<Libs>
|
<Libs>
|
||||||
<Libs>
|
<Libs>
|
||||||
<Lib>X</Lib>
|
<Lib>-L-lX11</Lib>
|
||||||
</Libs>
|
</Libs>
|
||||||
</Libs>
|
</Libs>
|
||||||
<ExtraCompilerArguments>-Jviews
|
<ExtraCompilerArguments>-Jviews
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
<Path>../../src</Path>
|
<Path>../../src</Path>
|
||||||
<Path>../../deps/dlib</Path>
|
<Path>../../deps/dlib</Path>
|
||||||
<Path>../../deps/gl3n</Path>
|
<Path>../../deps/gl3n</Path>
|
||||||
|
<Path>../../deps/x11/source</Path>
|
||||||
<Path>../../deps/DerelictSDL2/source</Path>
|
<Path>../../deps/DerelictSDL2/source</Path>
|
||||||
<Path>../../deps/DerelictFT/source</Path>
|
<Path>../../deps/DerelictFT/source</Path>
|
||||||
<Path>../../deps/DerelictGL3/source</Path>
|
<Path>../../deps/DerelictGL3/source</Path>
|
||||||
|
@ -168,10 +169,17 @@
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<DebugLevel>0</DebugLevel>
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugX11|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugX11|x64' ">
|
||||||
<OutputPath>bin\DebugX11</OutputPath>
|
<OutputPath>bin\DebugX11</OutputPath>
|
||||||
|
<VersionIds>
|
||||||
|
<VersionIds>
|
||||||
|
<String>USE_X11</String>
|
||||||
|
<String>USE_FREETYPE</String>
|
||||||
|
<String>EmbedStandardResources</String>
|
||||||
|
</VersionIds>
|
||||||
|
</VersionIds>
|
||||||
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
|
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
|
||||||
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
|
||||||
<ExtraCompilerArguments>-Jviews
|
<ExtraCompilerArguments>-Jviews
|
||||||
-Jviews/res
|
-Jviews/res
|
||||||
-Jviews/res/hdpi
|
-Jviews/res/hdpi
|
||||||
|
@ -183,6 +191,12 @@
|
||||||
<Target>Executable</Target>
|
<Target>Executable</Target>
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<DebugLevel>0</DebugLevel>
|
<DebugLevel>0</DebugLevel>
|
||||||
|
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
|
||||||
|
<Libs>
|
||||||
|
<Libs>
|
||||||
|
<Lib>-L-lX11</Lib>
|
||||||
|
</Libs>
|
||||||
|
</Libs>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="src\example1.d" />
|
<Compile Include="src\example1.d" />
|
||||||
|
|
|
@ -13,6 +13,8 @@ import dlangui.widgets.styles;
|
||||||
import dlangui.widgets.widget;
|
import dlangui.widgets.widget;
|
||||||
import dlangui.platforms.common.platform;
|
import dlangui.platforms.common.platform;
|
||||||
|
|
||||||
|
import std.stdio;
|
||||||
|
|
||||||
import x11.Xlib;
|
import x11.Xlib;
|
||||||
import x11.Xutil;
|
import x11.Xutil;
|
||||||
import x11.Xtos;
|
import x11.Xtos;
|
||||||
|
@ -48,6 +50,8 @@ class X11Window : dlangui.platforms.common.platform.Window {
|
||||||
*/
|
*/
|
||||||
_win = XCreateSimpleWindow(x11display, DefaultRootWindow(x11display), 0, 0,
|
_win = XCreateSimpleWindow(x11display, DefaultRootWindow(x11display), 0, 0,
|
||||||
_dx, _dy, 5, white, black);
|
_dx, _dy, 5, white, black);
|
||||||
|
|
||||||
|
readln();
|
||||||
|
|
||||||
/* here is where some properties of the window can be set.
|
/* here is where some properties of the window can be set.
|
||||||
The third and fourth items indicate the name which appears
|
The third and fourth items indicate the name which appears
|
||||||
|
|
Loading…
Reference in New Issue