Libcurl requires openssl and zlib to be fully operationnal
- Step 1 : cross compile zlib
- Step 2 : cross compile openssl
- Step 3 : cross compile curl with zlib/openssl external link
Prerequisites :
| #!/bin/bash | |
| # This script downloads and builds the iOS, tvOS and Mac openSSL libraries with Bitcode enabled | |
| # Credits: | |
| # https://github.com/st3fan/ios-openssl | |
| # https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
| # https://gist.github.com/foozmeat/5154962 | |
| # Peter Steinberger, PSPDFKit GmbH, @steipete. | |
| # Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |
| #!/bin/bash | |
| # This script downloads and builds the iOS, tvOS and Mac openSSL libraries with Bitcode enabled | |
| # Credits: | |
| # https://github.com/st3fan/ios-openssl | |
| # https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
| # https://gist.github.com/foozmeat/5154962 | |
| # Peter Steinberger, PSPDFKit GmbH, @steipete. | |
| # Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |
Android Studio exposes developers to -nodpi and -anydpi in various places. For example, if you use the New Resource Directory wizard thing, and you choose to add a density qualifier to the directory, you will see "No Density" (-nodpi) and "Any Density" (-anydpi) options.
Some of you might expect these to be well-documented.
In a word, no.
However, courtesy of a fair amount of experimentation (largely done as part of work on this Stack Overflow question and this answer), their use becomes at least a bit clearer. Many thanks to Stack Overflow user rds for the help!
| using UnityEditor; | |
| using UnityEngine; | |
| [CustomEditor(typeof(MeshFilter))] | |
| public class NormalsVisualizer : Editor { | |
| private const string EDITOR_PREF_KEY = "_normals_length"; | |
| private Mesh mesh; | |
| private MeshFilter mf; | |
| private Vector3[] verts; |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEngine.UI; | |
| using TMPro; | |
| using TMPro.EditorUtilities; | |
| public class UGuiTextToTextMeshPro : Editor | |
| { | |
| [MenuItem("GameObject/UI/Convert To Text Mesh Pro", false, 4000)] | |
| static void DoIt() |
| // | |
| // Copyright (c) 2017 eppz! mobile, Gergely Borbás (SP) | |
| // http://www.twitter.com/_eppz | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, AR |
| #!/bin/bash -e | |
| # -------------------------------------------------------- | |
| # Generate iOS Launch items from a single image | |
| # (c) 2017 ePi Rational, Inc. | |
| # | |
| # Modified from original script which generated app icons for iOS, | |
| # originally written by | |
| # Ben Clayton, Calvium Ltd. | |
| # https://gist.github.com/benvium/2be6d673aa9ac284bb8a |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Text; | |
| using System.Linq; | |
| using System; | |
| /// <summary> | |
| /// Remove empty folders automatically. |
| ##################### | |
| # | |
| # Use this with or without the .gitattributes snippet with this Gist | |
| # create a fixle.sh file, paste this in and run it. | |
| # Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
| # This Gist normalizes handling by forcing everything to use Unix style. | |
| ##################### | |
| # Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF |