The winners of the Europa League second-round tie between Aberdeen and Burnley will take on Istanbul Basaksehir, in the third qualifying round.
Rangers will play Chikhura Sachkhere from Georgia or Maribon from Slovenia if they win against Osijek of Croatia.
Hibernian will face either Norway's Molde or Albanian team Laci if they are able to beat Asteras Tripolis of Greece in the second round.
The third round qualifying matches will be played on August 9 and 16.
Istanbul Basaksehir finished third in the Turkish league this season, only three points behind winners Galatasaray and level on points with runners-up Fenerbahce.
Their squad includes some former Premier League players, in the form of Emmanual Adebayor and Gael Clichy, as well as Barcelona loanee Arda Turan.
Burnley took seventh place in the Premier League securing European football for the first time in 51 years.
They will play Aberdeen, who finished runners up of the Scottish Premier League on July 26 and August 2.
Scottish champions Celtic will play Rosenborg in Champions League qualifying.
The losers of that tie will drop into the Europa League qualifying where they would face a tie with Cork City.