Skip to content

Commit

Permalink
docs, enhanced building TinyORM page
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed May 5, 2022
1 parent e3ca66f commit 1fed7a4
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions docs/building-tinyorm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,27 @@ The same is true for the `Qt Framework`, it doesn't provide `qtenv` scripts for

Here is one simple example for `pwsh`.

```powershell title='qtenv5.ps1'
<Tabs groupId={shell}>
<TabItem value='qtenv6.ps1' label='qtenv6.ps1'>

```powershell
Write-Host 'Setting up environment for Qt 6.2.4 usage...' -ForegroundColor Magenta
$env:Path = 'C:\Qt\6.2.4\msvc2019_64\bin;' + $env:Path
. E:\dotfiles\bin\vcvars64.ps1
```

</TabItem>
<TabItem value='qtenv5.ps1' label='qtenv5.ps1'>

```powershell
Write-Host 'Setting up environment for Qt 5.15.2 usage...' -ForegroundColor Magenta
$env:Path = 'E:\Qt\5.15.2\msvc2019_64\bin;' + $env:Path
$env:Path = 'C:\Qt\5.15.2\msvc2019_64\bin;' + $env:Path
. E:\dotfiles\bin\vcvars64.ps1
```

</TabItem>
</Tabs>

##### Allow symbolic links unprivileged

Open `Local Security Policy`, go to `Local Policies - User Rights Assignment`, open `Create symbolic links` and add your user account or user group, restart when it doesn't apply immediately.
Expand Down Expand Up @@ -309,6 +324,8 @@ cd TinyORM-builds-cmake/build-debug
-D BUILD_TESTS:BOOL=OFF \`
-D MATCH_EQUAL_EXPORTED_BUILDTREE:BOOL=ON \`
-D MYSQL_PING:BOOL=OFF \`
-D TOM:BOOL=ON \`
-D TOM_EXAMPLE:BOOL=OFF \`
-D VERBOSE_CONFIGURE:BOOL=ON`}
</CodeBlock>
</TabItem>
Expand All @@ -324,6 +341,8 @@ cd TinyORM-builds-cmake/build-debug
-D VERBOSE_CONFIGURE:BOOL=ON \\
-D BUILD_TESTS:BOOL=OFF \\
-D MYSQL_PING:BOOL=OFF \\
-D TOM:BOOL=ON \\
-D TOM_EXAMPLE:BOOL=OFF \\
-D MATCH_EQUAL_EXPORTED_BUILDTREE:BOOL=ON`}
</CodeBlock>
</TabItem>
Expand Down Expand Up @@ -505,14 +524,16 @@ Now you are ready to configure the `TinyORM` library. The `qmake` does not suppo
<CodeBlock className='language-powershell'>
{`cd ${applicationFolderPath(pwsh)}/TinyORM/TinyORM\n
cp conf.pri.example conf.pri
cp tests/conf.pri.example tests/conf.pri`}
cp tests/conf.pri.example tests/conf.pri
cp examples/tom/conf.pri.example examples/tom/conf.pri`}
</CodeBlock>
</TabItem>
<TabItem value={bash} label={bash_label}>
<CodeBlock className='language-bash'>
{`cd ${applicationFolderPath(bash)}/TinyORM/TinyORM\n
cp conf.pri.example conf.pri
cp tests/conf.pri.example tests/conf.pri`}
cp tests/conf.pri.example tests/conf.pri
cp examples/tom/conf.pri.example examples/tom/conf.pri`}
</CodeBlock>
</TabItem>
</Tabs>
Expand Down

0 comments on commit 1fed7a4

Please sign in to comment.