This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b7e8f38
Showing
429 changed files
with
48,790 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Build Artifacts | ||
*.o | ||
build/ | ||
bin/ | ||
dest/ | ||
*.deb | ||
*.bz2 | ||
*build.log | ||
|
||
# Qt Build Artifacts | ||
Makefile* | ||
.qmake.stash | ||
/sdk/**/moc_* | ||
/sdk/**/ui_* | ||
/sdk/**/tst_* | ||
/samples/**/ui_* | ||
**.pro.user | ||
debug | ||
release | ||
|
||
*.exe | ||
.DS_Store | ||
*.dat | ||
|
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,21 @@ | ||
Copyright (c) Microsoft Open Technologies, Inc. | ||
|
||
The MIT License (MIT) | ||
|
||
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, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,14 @@ | ||
# RMS SDK for portable C++ | ||
|
||
- [How to Build](./docs/how_to_build_it.md) | ||
- [How to Use](./docs/how_to_use_it.md) | ||
|
||
Alternatively, run the script in `./scripts/build_and_test.sh`. | ||
|
||
## Contributing | ||
|
||
Before we can accept your pull request, you'll need to electronically complete Microsoft Open Tech's [Contributor License Agreement](https://cla.msopentech.com/). If you've done this for other Microsoft Open Tech projects, then you're already covered. | ||
|
||
## License | ||
|
||
Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the MIT license. |
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,143 @@ | ||
## How to build libs and sample apps | ||
|
||
Straightforward steps for building libraries and samples on supported platforms. | ||
|
||
--- | ||
## Supported targets | ||
- [Ubuntu 14.04](#ubuntu-1404) | ||
- [OpenSUSE 13.2](#opensuse-132) | ||
- [CentOS 7](#centos-7) | ||
|
||
Libs and samples have been successfully compiled on Windows and OSX as well, but these are not fully supported at this time. | ||
|
||
### Ubuntu 14.04 | ||
|
||
1. Install dev dependencies: | ||
``` | ||
sudo apt-get install qt5-default | ||
sudo apt-get install libqt5webkit5-dev | ||
sudo apt-get install libqt5xmlpatterns5-dev | ||
sudo apt-get install libssl-dev | ||
sudo apt-get install libsecret-1-dev | ||
``` | ||
|
||
2. Clone this repo: | ||
``` | ||
sudo apt-get install git | ||
git clone https://github.com/AzureAD/rms-sdk-for-cpp | ||
cd rms-sdk-for-cpp | ||
``` | ||
|
||
3. Build and install libraries: | ||
``` | ||
cd sdk | ||
qmake | ||
make | ||
sudo make install | ||
``` | ||
|
||
4. Build sample applications: | ||
``` | ||
cd ../samples | ||
qmake | ||
make | ||
``` | ||
|
||
5. Run sample applications: | ||
``` | ||
cd ../bin | ||
./rms_sample # RMS sample | ||
./rmsauth_sample # auth sample | ||
``` | ||
|
||
6. Create a tarball (to deploy apps): | ||
``` | ||
tar czf sample_apps.tar.gz ./rms_sample ./rmsauth_sample ./librmsauth.so ./librmsauthWebAuthDialog.so ./librms.so | ||
``` | ||
|
||
### OpenSUSE 13.2 | ||
|
||
1. Install dev dependencies: | ||
``` | ||
sudo zypper install libqt5-qtbase-devel | ||
sudo zypper install libQt5WebKitWidgets-devel | ||
sudo zypper install libQt5XmlPatterns-devel | ||
sudo zypper install libopenssl-devel | ||
``` | ||
|
||
2. Clone this repo | ||
``` | ||
sudo zypper install git | ||
git clone https://github.com/AzureAD/rms-sdk-for-cpp | ||
``` | ||
|
||
3. Build and install libraries: | ||
``` | ||
cd sdk | ||
qmake-qt5 | ||
make | ||
sudo make install | ||
``` | ||
|
||
4. Build sample applications: | ||
``` | ||
cd ../samples | ||
qmake-qt5 | ||
make | ||
``` | ||
|
||
5. Run sample applications: | ||
``` | ||
cd ../bin | ||
./rms_sample # RMS sample | ||
./rmsauth_sample # auth sample | ||
``` | ||
6. Create a tarball (to deploy apps): | ||
``` | ||
tar czf sample_apps.tar.gz ./rms_sample ./rmsauth_sample ./librmsauth.so ./librmsauthWebAuthDialog.so ./librms.so | ||
``` | ||
|
||
### CentOS 7 | ||
|
||
1. Install dev dependencies: | ||
``` | ||
sudo yum groupinstall "Development Tools" | ||
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm | ||
sudo rpm -ivh epel-release-7-5.noarch.rpm | ||
sudo yum --enablerepo=epel install qt5-qtbase-devel | ||
sudo yum --enablerepo=epel install qt5-qtwebkit-devel | ||
sudo yum --enablerepo=epel install qt5-qtxmlpatterns-devel | ||
sudo yum install openssl-devel | ||
``` | ||
|
||
2. Clone this repo: | ||
``` | ||
git clone https://github.com/AzureAD/rms-sdk-for-cpp | ||
``` | ||
|
||
3. Build and install libraries: | ||
``` | ||
cd sdk | ||
qmake-qt5 | ||
make | ||
sudo make install | ||
``` | ||
|
||
4. Build sample applications: | ||
``` | ||
cd ../samples | ||
qmake-qt5 | ||
make | ||
``` | ||
|
||
5. Run sample applications: | ||
``` | ||
cd ../bin | ||
./rms_sample # RMS sample | ||
./rmsauth_sample # auth sample | ||
``` | ||
|
||
6. Create a tarball (to deploy apps): | ||
``` | ||
tar czf sample_apps.tar.gz ./rms_sample ./rmsauth_sample ./librmsauth.so ./librmsauthWebAuthDialog.so ./librms.so ./librmscrypto.so | ||
``` |
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,39 @@ | ||
## How to install and use apps on user systems | ||
|
||
These instructions utilize the tarball created in [how_to_build_it.md](./how_to_build_it.md), copied to the home directory of a user system. | ||
|
||
1. Install run-time dependencies: | ||
|
||
* Ubuntu 14.04 | ||
``` | ||
sudo apt-get install libqt5xmlpatterns5 | ||
sudo apt-get install libsecret-1-0 | ||
``` | ||
|
||
* OpenSUSE 13.2 | ||
``` | ||
sudo zypper install libQt5WebKitWidgets5 | ||
sudo zypper install libQt5Xml5 | ||
``` | ||
|
||
* CentOS 7 | ||
``` | ||
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm | ||
sudo rpm -ivh epel-release-7-5.noarch.rpm | ||
sudo yum --enablerepo=epel install qt5-qtwebkit | ||
``` | ||
|
||
2. Unpack the tarball: | ||
``` | ||
cd ~ | ||
mkdir ~/sample_apps | ||
tar -xzf ~/sample_apps.tar.gz -C ~/sample_apps | ||
``` | ||
|
||
3. Run the apps: | ||
``` | ||
cd ~/sample_apps | ||
export LD_LIBRARY_PATH=`pwd` | ||
./rms_sample # RMS sample | ||
./rmsauth_sample # auth sample | ||
``` |
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,21 @@ | ||
/* | ||
* ====================================================================== | ||
* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. | ||
* Licensed under the MIT License. | ||
* See LICENSE.md in the project root for license information. | ||
* ====================================================================== | ||
*/ | ||
|
||
#include "mainwindow.h" | ||
#include <QApplication> | ||
#include <QFile> | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QApplication a(argc, argv); | ||
MainWindow window; | ||
|
||
window.show(); | ||
|
||
a.exec(); | ||
} |
Oops, something went wrong.