-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
win support #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win support #329
Changes from 41 commits
be16bb5
e9ee7c3
27c1307
f2b060e
8de983a
3e57e56
12b6a3c
283351a
9cd71b3
a15863c
b86a32f
9a66008
c20fb5b
850761f
6a1a927
af693c4
d3f3a4c
cbc1b1d
e489d3b
793900d
3585288
14a38ba
cac00ed
3dbf56d
4f10db0
174c1dd
7b20534
e70535c
a4bed7d
e566abe
cda5e7e
6885c44
b6775ab
faa375f
6578c6b
6fbcc2a
d0a9005
36e2b4c
bbdae70
3dddc43
7ac3a99
461e7a5
96a62bd
62aeb29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,16 @@ | |
| '/wd4068', # unknown pragma | ||
| '/wd4702' # unreachable code | ||
| ], | ||
| 'defines': [ | ||
| 'NOMINMAX', # Don't define min and max macros (windows.h) | ||
| # Don't bloat namespace with incompatible winsock versions. | ||
| 'WIN32_LEAN_AND_MEAN', | ||
| # Don't warn about usage of insecure C functions. | ||
| '_CRT_SECURE_NO_WARNINGS', | ||
| '_SCL_SECURE_NO_WARNINGS', | ||
| # Introduced in VS 2017 15.8, allow overaligned types in aligned_storage | ||
| '_ENABLE_EXTENDED_ALIGNED_STORAGE' | ||
| ] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NOTE:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok... New commits in |
||
| }] | ||
| ], | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| 'targets': | ||
| [ | ||
| { | ||
| 'target_name': 'getopt', | ||
| 'type': 'static_library', | ||
| 'sources': | ||
| [ | ||
| 'getopt/src/getopt.h', | ||
| 'getopt/src/getopt.c' | ||
| ], | ||
| 'include_dirs': | ||
| [ | ||
| 'getopt/src/' | ||
| ], | ||
| 'direct_dependent_settings': | ||
| { | ||
| 'include_dirs': ['getopt/src/'] | ||
| }, | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| CMakeCache.txt | ||
| CMakeFiles | ||
| Makefile | ||
| cmake_install.cmake | ||
| install_manifest.txt | ||
| build | ||
| *.lib | ||
| *.pdb |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| PROJECT(wingetopt) | ||
| cmake_minimum_required(VERSION 2.8) | ||
|
|
||
| option(BUILD_SHARED_LIBS "Build the shared library" OFF) | ||
|
|
||
| include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
|
|
||
| add_definitions(-D_CRT_SECURE_NO_WARNINGS) | ||
|
|
||
| if(BUILD_SHARED_LIBS) | ||
| set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
| add_definitions(-DBUILDING_WINGETOPT_DLL -DWINGETOPT_SHARED_LIB) | ||
| endif() | ||
|
|
||
| add_library(wingetopt src/getopt.c src/getopt.h) | ||
|
|
||
| install(FILES src/getopt.h DESTINATION include) | ||
|
|
||
| install(TARGETS wingetopt | ||
| RUNTIME DESTINATION bin | ||
| LIBRARY DESTINATION lib | ||
| ARCHIVE DESTINATION lib) | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| #### AUTHORS: | ||
|
|
||
| * Todd C. Miller <Todd.Miller@courtesan.com> | ||
| * The NetBSD Foundation, Inc. | ||
| * Alexei Kasatkin is the author of trivial CMakeLists.txt, build script itself is Public Domain | ||
|
|
||
| #### LICENSE | ||
|
|
||
| Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com> | ||
|
|
||
| Permission to use, copy, modify, and distribute this software for any | ||
| purpose with or without fee is hereby granted, provided that the above | ||
| copyright notice and this permission notice appear in all copies. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
|
||
| Sponsored in part by the Defense Advanced Research Projects | ||
| Agency (DARPA) and Air Force Research Laboratory, Air Force | ||
| Materiel Command, USAF, under agreement number F39502-99-1-0512. | ||
|
|
||
| *** | ||
|
|
||
| Copyright (c) 2000 The NetBSD Foundation, Inc. | ||
| All rights reserved. | ||
|
|
||
| This code is derived from software contributed to The NetBSD Foundation | ||
| by Dieter Baron and Thomas Klausner. | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions | ||
| are met: | ||
| 1. Redistributions of source code must retain the above copyright | ||
| notice, this list of conditions and the following disclaimer. | ||
| 2. Redistributions in binary form must reproduce the above copyright | ||
| notice, this list of conditions and the following disclaimer in the | ||
| documentation and/or other materials provided with the distribution. | ||
|
|
||
| THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | ||
| ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | ||
| TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | ||
| BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
| INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
| CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
| POSSIBILITY OF SUCH DAMAGE. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # wingetopt | ||
|
|
||
| getopt library for Windows compilers | ||
|
|
||
|
|
||
| This library was created to allow compilation linux-based software on Windows. | ||
| http://en.wikipedia.org/wiki/Getopt | ||
|
|
||
| The sources were taken from MinGW-runtime project. | ||
|
|
||
| #### AUTHORS: | ||
|
|
||
| * Todd C. Miller <Todd.Miller@courtesan.com> | ||
| * The NetBSD Foundation, Inc. | ||
|
|
||
| #### LICENSE | ||
|
|
||
| Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com> | ||
|
|
||
| Permission to use, copy, modify, and distribute this software for any | ||
| purpose with or without fee is hereby granted, provided that the above | ||
| copyright notice and this permission notice appear in all copies. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
|
||
| Sponsored in part by the Defense Advanced Research Projects | ||
| Agency (DARPA) and Air Force Research Laboratory, Air Force | ||
| Materiel Command, USAF, under agreement number F39502-99-1-0512. | ||
|
|
||
| *** | ||
|
|
||
| Copyright (c) 2000 The NetBSD Foundation, Inc. | ||
| All rights reserved. | ||
|
|
||
| This code is derived from software contributed to The NetBSD Foundation | ||
| by Dieter Baron and Thomas Klausner. | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions | ||
| are met: | ||
| 1. Redistributions of source code must retain the above copyright | ||
| notice, this list of conditions and the following disclaimer. | ||
| 2. Redistributions in binary form must reproduce the above copyright | ||
| notice, this list of conditions and the following disclaimer in the | ||
| documentation and/or other materials provided with the distribution. | ||
|
|
||
| THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | ||
| ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | ||
| TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | ||
| BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
| INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
| CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
| POSSIBILITY OF SUCH DAMAGE. |
Uh oh!
There was an error while loading. Please reload this page.