-
Notifications
You must be signed in to change notification settings - Fork 550
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
Create libmysql.a using dlltool.exe on mingw64 #473
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d198e90
Use AppVeyor for Windows testing
sodabrew 68c41a2
Update for MinGW-x64
sodabrew afe0ae9
Skip EM specs on Windows
sodabrew a399494
Add support/libmysql.def
sodabrew 12287c3
Add a mangled copy of each symbol to libmysql.def
sodabrew 7366f9c
Generate interface library libmysql.a from MySQL Connector/C libmysql…
sodabrew 05ba33e
Use env var RUBY_MYSQL2_LIBMYSQL_DLL to find libmysql.dll out of path
sodabrew 875a627
Vendor libmysql.dll by default on Windows. Use rpath only on Unix pla…
sodabrew 17a3dc3
Find dlltool from RbConfig and update rake-compiler for cross-compila…
sodabrew 6a16655
Use AppVeyor cache for gems and bundle
sodabrew 4dec034
Add AppVeyor CI link to the README
sodabrew e489942
Create the vendor dir if needed
sodabrew 2f894f4
Update the cross-compile task
sodabrew 0eade9f
Adjust the libmysql.dll search path code
sodabrew df58a81
Wrap vendor:mysql tasks with a platform argument
sodabrew f53219f
Update the Windows section of the README
sodabrew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
version: "{build}" | ||
clone_depth: 10 | ||
install: | ||
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH% | ||
- ruby --version | ||
- gem --version | ||
- gem install bundler --quiet --no-ri --no-rdoc | ||
- bundler --version | ||
- bundle install --without benchmarks | ||
build_script: | ||
- bundle exec rake compile | ||
test_script: | ||
- '"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql" --version' | ||
- > | ||
"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql" -u root -p"Password12!" -e " | ||
CREATE DATABASE IF NOT EXISTS test; | ||
CREATE USER '%USERNAME%'@'localhost'; | ||
SET PASSWORD = PASSWORD(''); | ||
FLUSH PRIVILEGES; | ||
" | ||
- bundle exec rake spec | ||
# Where do I get Unix find? | ||
#on_failure: | ||
# - find tmp -name "*.log" -exec cat {}; | ||
environment: | ||
matrix: | ||
- ruby_version: "200" | ||
- ruby_version: "200-x64" | ||
- ruby_version: "21" | ||
- ruby_version: "21-x64" | ||
cache: | ||
- vendor | ||
- C:\Ruby200\lib\ruby\gems\2.0.0 | ||
- C:\Ruby200\bin | ||
- C:\Ruby200-x64\lib\ruby\gems\2.0.0 | ||
- C:\Ruby200-x64\bin | ||
- C:\Ruby21\lib\ruby\gems\2.1.0 | ||
- C:\Ruby21\bin | ||
- C:\Ruby21-x64\lib\ruby\gems\2.1.0 | ||
- C:\Ruby21-x64\bin | ||
services: | ||
- mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is not
libmysql.lib
placed in the same support folder likelibmysql.def
? (the.lib
is only useful at build time)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libmysql.def
is checked into the repo, because tools to generate it at compile time are not a default part of MinGW :(libmysql.lib
is referenced from the MySQL directory, since it is only needed a compile time.libmysql.dll
is copied over because it is needed at run time.