| 1 | <?xml version="1.0" ?> |
|---|
| 2 | <!-- |
|---|
| 3 | Adds 'win32-sys-lib' tag to dll and module targets: |
|---|
| 4 | |
|---|
| 5 | Sample usage: |
|---|
| 6 | <exe|dll|... ...> |
|---|
| 7 | ... |
|---|
| 8 | <win32-sys-lib>wsock32</win32-sys-lib> |
|---|
| 9 | </exe> |
|---|
| 10 | Useful when you don't want to clutter old code with __declspec(dllexport). |
|---|
| 11 | |
|---|
| 12 | Works with: |
|---|
| 13 | autoconf, msvs2003prj |
|---|
| 14 | |
|---|
| 15 | Should work with: |
|---|
| 16 | borland, mingw, msvc6prj,msvs2005prj,msvs2008prj |
|---|
| 17 | |
|---|
| 18 | Author Zbigniew Zagorski <z.zagorski@gmail.com> |
|---|
| 19 | --> |
|---|
| 20 | <makefile> |
|---|
| 21 | <define-tag name="win32-sys-lib" rules="exe,dll,module"> |
|---|
| 22 | <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'"> |
|---|
| 23 | <sys-lib>$(value)</sys-lib> |
|---|
| 24 | </if> |
|---|
| 25 | <if cond="FORMAT=='autoconf'"> |
|---|
| 26 | <set var="__ldflags" append="1"> |
|---|
| 27 | <if cond="PLATFORM_WIN32=='1'">-l$(value)</if> |
|---|
| 28 | </set> |
|---|
| 29 | </if> |
|---|
| 30 | </define-tag> |
|---|
| 31 | </makefile> |
|---|
| 32 | |
|---|