dwtlib 3.0.0

The dub package for dwt


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Dub version Dub downloads

dwtlib - DUB package for the D Widget Toolkit

DWT is a library for creating cross-platform GUI applications. It's a port of the SWT Java library from Eclipse.

dwtlib is the dub package repository for DWT.

Status

WORKING and tested on:

- Windows 10 Home  32-bit and 64-bit
- Ubuntu 16.04 LTS 32-bit and 64-bit
- DMD32 D Compiler v2.074.0, DUB version 1.3.0

DWT cloned from Github is NOT compatable with DMD v2.074.0 as-is
There is some issue with DMD v2.074.0 writing *.di files
DWT imports the *.di files and fails
dwtlib imports the *.d source files versus the *.di files

Building (refer to doc/dlang-install)

  1. Install DMD (includes DUB)

    Browse to http://dlang.org/ Click to download the lastest version (e.g. 2.074.0) Open with Software install (Ubuntu) Install

    Check Version

    $ dmd --version
    DMD32 D Compiler v2.074.0
    
    $ dub --version
    DUB version 1.3.0
    
    

    Quick Test

    $ rdmd examples/console/hello.d
    
    
  2. Fetch the DUB package

    $ dub fetch dwtlib
    
    
  3. Get the linux libraries (no extra libs required for Windows):

    $ cd /home/<USER>/.dub/packages/dwtlib-3.0.0/dwtlib/tools/get-libs
    
    $ bash ./get-libs.sh
    
    

(It's not necessary to get the libs before building the dwt lib)

  1. Build the DWT static libraries:

    $ cd /home/<USER>/.dub/packages/dwtlib-3.0.0/dwtlib
    
    $ dub fetch dwtlib
    
    Ubuntu  32-bit and 64-bit: $ bash ./build_dwtlib.bat
    Windows 32-bit           : $ rdmd build_dwtlib.bat
    Windows 64-bit           : $ rdmd build_dwtlib.bat_m64
    
    $ cd ../examples
    
    Ubuntu : $ bash ./example.sh
    Windows: $ example.bat
    
    
  2. Add a dependency to your app's dub.json or dub.sdl, see the examples.

    dependency "dwtlib" version=">=3.0.0"
    
    

Snippets

Run Snippets with rdub in the examples folder:

Ubuntu : $ bash ./snippets_demo.sh
Windows: $ snippets_demo.bat

Dependencies:
none
Versions:
3.2.5 2018-Feb-17
3.2.4 2018-Feb-16
3.2.3 2018-Feb-16
3.2.1 2018-Feb-16
3.1.1 2017-May-23
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 423 downloads total

Score:
0.0
Short URL:
dwtlib.dub.pm